diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-11-02 14:46:41 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-11-02 14:46:41 (GMT) |
commit | b36f8329c06bba56e25698452f4bfabdd9fb4126 (patch) | |
tree | fa9c71fc90a12989400155f127172f2f3134e98f /Lib | |
parent | e509ff4d5cbef58d270f0e6784424d408a0b9572 (diff) | |
download | cpython-b36f8329c06bba56e25698452f4bfabdd9fb4126.zip cpython-b36f8329c06bba56e25698452f4bfabdd9fb4126.tar.gz cpython-b36f8329c06bba56e25698452f4bfabdd9fb4126.tar.bz2 |
Removing the keyword only restriction for the places argument in unittest.TestCase.assert[Not]AlmostEqual
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/unittest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py index c27fac1..ea9f5f6 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -634,7 +634,7 @@ class TestCase(object): msg = self._formatMessage(msg, '%r == %r' % (first, second)) raise self.failureException(msg) - def assertAlmostEqual(self, first, second, *, places=7, msg=None): + def assertAlmostEqual(self, first, second, places=7, msg=None): """Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. @@ -647,7 +647,7 @@ class TestCase(object): msg = self._formatMessage(msg, standardMsg) raise self.failureException(msg) - def assertNotAlmostEqual(self, first, second, *, places=7, msg=None): + def assertNotAlmostEqual(self, first, second, places=7, msg=None): """Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. |