mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Remove the keyword only restriction for places and delta args in unittest.TestCase.assert[Not]AlmostEqual
This commit is contained in:
parent
a2c9770bae
commit
321d059147
1 changed files with 2 additions and 2 deletions
|
@ -595,7 +595,7 @@ class TestCase(object):
|
||||||
safe_repr(second)))
|
safe_repr(second)))
|
||||||
raise self.failureException(msg)
|
raise self.failureException(msg)
|
||||||
|
|
||||||
def assertAlmostEqual(self, first, second, *, places=None, msg=None,
|
def assertAlmostEqual(self, first, second, places=None, msg=None,
|
||||||
delta=None):
|
delta=None):
|
||||||
"""Fail if the two objects are unequal as determined by their
|
"""Fail if the two objects are unequal as determined by their
|
||||||
difference rounded to the given number of decimal places
|
difference rounded to the given number of decimal places
|
||||||
|
@ -634,7 +634,7 @@ class TestCase(object):
|
||||||
msg = self._formatMessage(msg, standardMsg)
|
msg = self._formatMessage(msg, standardMsg)
|
||||||
raise self.failureException(msg)
|
raise self.failureException(msg)
|
||||||
|
|
||||||
def assertNotAlmostEqual(self, first, second, *, places=None, msg=None,
|
def assertNotAlmostEqual(self, first, second, places=None, msg=None,
|
||||||
delta=None):
|
delta=None):
|
||||||
"""Fail if the two objects are equal as determined by their
|
"""Fail if the two objects are equal as determined by their
|
||||||
difference rounded to the given number of decimal places
|
difference rounded to the given number of decimal places
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue