Skip to content

Commit

Permalink
Merge pull request #35589 from Dr15Jones/remove_assertEquals
Browse files Browse the repository at this point in the history
Removed use of assertEquals in python test
  • Loading branch information
cmsbuild authored Oct 9, 2021
2 parents d310d6e + b48fbed commit 6657db0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FWCore/ParameterSet/python/Types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2000,15 +2000,15 @@ 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)

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)
Expand Down

0 comments on commit 6657db0

Please sign in to comment.