diff --git a/FWCore/ParameterSet/python/Types.py b/FWCore/ParameterSet/python/Types.py index b069226e74e9b..23457b8ce3108 100644 --- a/FWCore/ParameterSet/python/Types.py +++ b/FWCore/ParameterSet/python/Types.py @@ -8,6 +8,7 @@ import copy import math import builtins +import typing _builtin_bool = bool @@ -2000,7 +2001,7 @@ def testAllowed(self): p2 = PSet(aValue=optional.allowed(int32,PSet)) self.assertEqual(p2.dumpPython(),'cms.PSet(\n aValue = cms.optional.allowed(cms.int32,cms.PSet)\n)') p2.aValue = 2 - self.assertEquals(p2.aValue.value(),2) + self.assertEqual(p2.aValue.value(),2) p2 = PSet(aValue=optional.allowed(int32,PSet)) p2.aValue = PSet(i = int32(3)) self.assertEqual(p2.aValue.i.value(),3) @@ -2008,7 +2009,7 @@ def testAllowed(self): p2 = PSet(aValue=optional.untracked.allowed(int32,PSet)) self.assertEqual(p2.dumpPython(),'cms.PSet(\n aValue = cms.optional.untracked.allowed(cms.int32,cms.PSet)\n)') p2.aValue = 2 - self.assertEquals(p2.aValue.value(),2) + self.assertEqual(p2.aValue.value(),2) p2 = PSet(aValue=optional.untracked.allowed(int32,PSet)) p2.aValue = PSet(i = int32(3)) self.assertEqual(p2.aValue.i.value(),3)