summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-10-18 17:34:27 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-10-18 17:34:27 (GMT)
commit7bbbc6afa4f500ffbd7bfc25dbabf85548421fff (patch)
tree25685c4468e85c201a6c1f46fc6e83811f57b163 /Lib
parent97abcabc195b87d6a5562dbb867a469fac27d3f6 (diff)
downloadcpython-7bbbc6afa4f500ffbd7bfc25dbabf85548421fff.zip
cpython-7bbbc6afa4f500ffbd7bfc25dbabf85548421fff.tar.gz
cpython-7bbbc6afa4f500ffbd7bfc25dbabf85548421fff.tar.bz2
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 032a6480e360427d4f964e31643604fad804ea14)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/unittest/case.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index f4dbc52..c3634ec 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -842,7 +842,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).
@@ -881,7 +882,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).