From 749197d3dd2b3b25954110a24bcd7d27380e1ef9 Mon Sep 17 00:00:00 2001 From: Ron Date: Wed, 18 Oct 2017 20:01:23 +0300 Subject: [PATCH] [2.7] 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. (cherry picked from commit 032a6480e360427d4f964e31643604fad804ea14) --- Lib/unittest/case.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index 8f4610145aca35..a3f75af52795ca 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -526,7 +526,8 @@ def assertAlmostEqual(self, first, second, places=None, msg=None, delta=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). @@ -564,7 +565,7 @@ def assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=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).