]> granicus.if.org Git - python/commitdiff
Remove the keyword only restriction for places and delta args in unittest.TestCase...
authorMichael Foord <fuzzyman@voidspace.org.uk>
Tue, 2 Nov 2010 13:44:51 +0000 (13:44 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Tue, 2 Nov 2010 13:44:51 +0000 (13:44 +0000)
Lib/unittest/case.py

index 761ac46e7aa3866b37e0feda6df67678a19b590d..5831a76e030f34faf05d4f334d6431a7383ab835 100644 (file)
@@ -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