summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRon <RonVisbord@Gmail.com>2017-10-18 17:01:23 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-10-18 17:01:23 (GMT)
commit032a6480e360427d4f964e31643604fad804ea14 (patch)
treeda29c676762571dfa3102af8746f49cc8138b275
parent59af94fa61bf90adbe624508e909b5d6ef6e8464 (diff)
downloadcpython-032a6480e360427d4f964e31643604fad804ea14.zip
cpython-032a6480e360427d4f964e31643604fad804ea14.tar.gz
cpython-032a6480e360427d4f964e31643604fad804ea14.tar.bz2
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.
-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 c48a63c..c0170d1 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -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).