]> granicus.if.org Git - python/commit
Addition of delta keyword argument to unittest.TestCase.assertAlmostEquals and assert...
authorMichael Foord <fuzzyman@voidspace.org.uk>
Sat, 27 Mar 2010 19:10:11 +0000 (19:10 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Sat, 27 Mar 2010 19:10:11 +0000 (19:10 +0000)
commita7e08fe3f88d116622fb0508e88f5af9f1ac2d84
tree8779446626b6b1fdd8467bd09c42124d2fa7820e
parentb35ecf47755b23be95657df7d80fe5fcfe261671
Addition of delta keyword argument to unittest.TestCase.assertAlmostEquals and assertNotAlmostEquals

This allows the comparison of objects by specifying a maximum difference; this includes the comparing of non-numeric objects that don't support rounding.
Lib/unittest/case.py
Lib/unittest/test/test_assertions.py