Skip to content

Commit 8fa0648

Browse files
miss-islingtonMariatta
authored andcommitted
Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998) (GH-4040)
The word "difference" from missing the sentence. This clarifies that it compares the difference between the two objects. (cherry picked from commit 032a648)
1 parent 27b951c commit 8fa0648

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/unittest/case.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ def assertAlmostEqual(self, first, second, places=None, msg=None, delta=None):
526526
"""Fail if the two objects are unequal as determined by their
527527
difference rounded to the given number of decimal places
528528
(default 7) and comparing to zero, or by comparing that the
529-
between the two objects is more than the given delta.
529+
difference between the two objects is more than the given
530+
delta.
530531
531532
Note that decimal places (from zero) are usually not the same
532533
as significant digits (measured from the most significant digit).
@@ -564,7 +565,7 @@ def assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None)
564565
"""Fail if the two objects are equal as determined by their
565566
difference rounded to the given number of decimal places
566567
(default 7) and comparing to zero, or by comparing that the
567-
between the two objects is less than the given delta.
568+
difference between the two objects is less than the given delta.
568569
569570
Note that decimal places (from zero) are usually not the same
570571
as significant digits (measured from the most significant digit).

0 commit comments

Comments
 (0)