[Python-checkins] r86114 - python/branches/py3k/Lib/unittest/case.py

michael.foord python-checkins at python.org
Tue Nov 2 14:44:51 CET 2010


Author: michael.foord
Date: Tue Nov  2 14:44:51 2010
New Revision: 86114

Log:
Remove the keyword only restriction for places and delta args in unittest.TestCase.assert[Not]AlmostEqual

Modified:
   python/branches/py3k/Lib/unittest/case.py

Modified: python/branches/py3k/Lib/unittest/case.py
==============================================================================
--- python/branches/py3k/Lib/unittest/case.py	(original)
+++ python/branches/py3k/Lib/unittest/case.py	Tue Nov  2 14:44:51 2010
@@ -595,7 +595,7 @@
                                                           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 @@
         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


More information about the Python-checkins mailing list