summaryrefslogtreecommitdiffstats
path: root/Lib/unittest.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r--Lib/unittest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py
index a023c67..bd72d90 100644
--- a/Lib/unittest.py
+++ b/Lib/unittest.py
@@ -331,7 +331,7 @@ class TestCase:
if first == second:
raise self.failureException(msg or '%r == %r' % (first, second))
- def failUnlessAlmostEqual(self, first, second, places=7, msg=None):
+ def failUnlessAlmostEqual(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.
@@ -343,7 +343,7 @@ class TestCase:
raise self.failureException(msg or '%r != %r within %r places'
% (first, second, places))
- def failIfAlmostEqual(self, first, second, places=7, msg=None):
+ def failIfAlmostEqual(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.