[docs] Bug in doc for assertAlmostEqual
Magnus Lie Hetland
magnus at hetland.org
Mon Mar 18 11:28:22 CET 2013
Hi!
Just noticed a bug here:
http://docs.python.org/2/library/unittest.html#unittest.TestCase.assertAlmostEqual
http://docs.python.org/3/library/unittest.html#unittest.TestCase.assertAlmostEqual
There is a sentence that says, "If delta is supplied instead of places then the difference between first and second must be less (or more) than delta."
Judging by the source code (3.3), that should be "less than or equal to (or greater than or equal to) delta", i.e., it's not a strict inequality.
--
Magnus Lie Hetland
http://hetland.org
More information about the docs
mailing list