Skip to content

Commit 032a648

Browse files
selotapeMariatta
authored andcommitted
Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998)
The word "difference" from missing the sentence. This clarifies that it compares the difference between the two objects.
1 parent 59af94f commit 032a648

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
@@ -852,7 +852,8 @@ def assertAlmostEqual(self, first, second, places=None, msg=None,
852852
"""Fail if the two objects are unequal as determined by their
853853
difference rounded to the given number of decimal places
854854
(default 7) and comparing to zero, or by comparing that the
855-
between the two objects is more than the given delta.
855+
difference between the two objects is more than the given
856+
delta.
856857
857858
Note that decimal places (from zero) are usually not the same
858859
as significant digits (measured from the most significant digit).
@@ -896,7 +897,7 @@ def assertNotAlmostEqual(self, first, second, places=None, msg=None,
896897
"""Fail if the two objects are equal as determined by their
897898
difference rounded to the given number of decimal places
898899
(default 7) and comparing to zero, or by comparing that the
899-
between the two objects is less than the given delta.
900+
difference between the two objects is less than the given delta.
900901
901902
Note that decimal places (from zero) are usually not the same
902903
as significant digits (measured from the most significant digit).

0 commit comments

Comments
 (0)