Skip to content

Commit 7bbbc6a

Browse files
miss-islingtonMariatta
authored andcommitted
Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998) (GH-4039)
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 97abcab commit 7bbbc6a

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
@@ -842,7 +842,8 @@ def assertAlmostEqual(self, first, second, places=None, msg=None,
842842
"""Fail if the two objects are unequal as determined by their
843843
difference rounded to the given number of decimal places
844844
(default 7) and comparing to zero, or by comparing that the
845-
between the two objects is more than the given delta.
845+
difference between the two objects is more than the given
846+
delta.
846847
847848
Note that decimal places (from zero) are usually not the same
848849
as significant digits (measured from the most significant digit).
@@ -881,7 +882,7 @@ def assertNotAlmostEqual(self, first, second, places=None, msg=None,
881882
"""Fail if the two objects are equal as determined by their
882883
difference rounded to the given number of decimal places
883884
(default 7) and comparing to zero, or by comparing that the
884-
between the two objects is less than the given delta.
885+
difference between the two objects is less than the given delta.
885886
886887
Note that decimal places (from zero) are usually not the same
887888
as significant digits (measured from the most significant digit).

0 commit comments

Comments
 (0)