summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/case.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-11-02 13:44:51 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-11-02 13:44:51 (GMT)
commit321d0591473432046432959fc932de0c5149aeda (patch)
tree38322cb72cff7d96d15f36df452cdf5f7e3ed522 /Lib/unittest/case.py
parenta2c9770bae7ca87617857730afbfd058733c847f (diff)
downloadcpython-321d0591473432046432959fc932de0c5149aeda.zip
cpython-321d0591473432046432959fc932de0c5149aeda.tar.gz
cpython-321d0591473432046432959fc932de0c5149aeda.tar.bz2
Remove the keyword only restriction for places and delta args in unittest.TestCase.assert[Not]AlmostEqual
Diffstat (limited to 'Lib/unittest/case.py')
-rw-r--r--Lib/unittest/case.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index 761ac46..5831a76 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