[Python-checkins] Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998)

Mariatta webhook-mailer at python.org
Wed Oct 18 13:01:26 EDT 2017


https://github.com/python/cpython/commit/032a6480e360427d4f964e31643604fad804ea14
commit: 032a6480e360427d4f964e31643604fad804ea14
branch: master
author: Ron <RonVisbord at Gmail.com>
committer: Mariatta <Mariatta at users.noreply.github.com>
date: 2017-10-18T10:01:23-07:00
summary:

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.

files:
M Lib/unittest/case.py

diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index c48a63c575f..c0170d18257 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -852,7 +852,8 @@ def assertAlmostEqual(self, first, second, places=None, msg=None,
         """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 @@ def assertNotAlmostEqual(self, first, second, places=None, msg=None,
         """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).



More information about the Python-checkins mailing list