From: Michael Foord Date: Tue, 2 Nov 2010 13:44:51 +0000 (+0000) Subject: Remove the keyword only restriction for places and delta args in unittest.TestCase... X-Git-Tag: v3.2a4~180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=321d0591473432046432959fc932de0c5149aeda;p=python Remove the keyword only restriction for places and delta args in unittest.TestCase.assert[Not]AlmostEqual --- diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index 761ac46e7a..5831a76e03 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -595,7 +595,7 @@ class TestCase(object): safe_repr(second))) raise self.failureException(msg) - def assertAlmostEqual(self, first, second, *, places=None, msg=None, + def assertAlmostEqual(self, first, second, places=None, msg=None, delta=None): """Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places @@ -634,7 +634,7 @@ class TestCase(object): msg = self._formatMessage(msg, standardMsg) raise self.failureException(msg) - def assertNotAlmostEqual(self, first, second, *, places=None, msg=None, + def assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None): """Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places