mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
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.
This commit is contained in:
@@ -852,7 +852,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).
|
||||
@@ -896,7 +897,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).
|
||||
|
||||
Reference in New Issue
Block a user