]> granicus.if.org Git - python/commitdiff
Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Oct 2017 17:30:05 +0000 (10:30 -0700)
committerMariatta <Mariatta@users.noreply.github.com>
Wed, 18 Oct 2017 17:30:05 +0000 (10:30 -0700)
The word "difference" from missing the sentence.
This clarifies that it compares the difference between the two objects.
(cherry picked from commit 032a6480e360427d4f964e31643604fad804ea14)

Lib/unittest/case.py

index 8f4610145aca353591433aac407f09bdb7b8ee15..a3f75af52795cae5201b54f2516a23e32c019c1d 100644 (file)
@@ -526,7 +526,8 @@ class TestCase(object):
         """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, or by comparing that the
-           between the two objects is more than the given delta.
+           difference between the two objects is more than the given
+           delta.
 
            Note that decimal places (from zero) are usually not the same
            as significant digits (measured from the most significant digit).
@@ -564,7 +565,7 @@ class TestCase(object):
         """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, or by comparing that the
-           between the two objects is less than the given delta.
+           difference between the two objects is less than the given delta.
 
            Note that decimal places (from zero) are usually not the same
            as significant digits (measured from the most significant digit).