mirror of
https://github.com/python/cpython.git
synced 2025-09-30 04:15:43 +00:00
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 032a6480e3
)
This commit is contained in:
parent
97abcabc19
commit
7bbbc6afa4
1 changed files with 3 additions and 2 deletions
|
@ -842,7 +842,8 @@ class TestCase(object):
|
||||||
"""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
|
||||||
(default 7) and comparing to zero, or by comparing that the
|
(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
|
Note that decimal places (from zero) are usually not the same
|
||||||
as significant digits (measured from the most significant digit).
|
as significant digits (measured from the most significant digit).
|
||||||
|
@ -881,7 +882,7 @@ class TestCase(object):
|
||||||
"""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
|
||||||
(default 7) and comparing to zero, or by comparing that the
|
(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
|
Note that decimal places (from zero) are usually not the same
|
||||||
as significant digits (measured from the most significant digit).
|
as significant digits (measured from the most significant digit).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue