From 79201c86cdc03e8f704ca55b1525887dbe47b644 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 8 Oct 2021 09:35:59 -0500 Subject: [PATCH] Removed used of assertEquals in python test This was generating a deprecation warning --- FWCore/ParameterSet/python/Types.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)