]> granicus.if.org Git - python/commit
bpo-30190: improved error msg for assertAlmostEqual(delta=...) (#1331)
authorGiampaolo Rodola <g.rodola@gmail.com>
Mon, 1 May 2017 16:18:56 +0000 (18:18 +0200)
committerGitHub <noreply@github.com>
Mon, 1 May 2017 16:18:56 +0000 (18:18 +0200)
commit5d7a8d0c13737fd531b722ad76c505ef47aac96a
tree2ad8be6cb6bc56b9e8847468aad7edb1416472b5
parent1374dbb6940f29c49c2966551a06015857c942cc
bpo-30190: improved error msg for assertAlmostEqual(delta=...) (#1331)

* #30190 / unittest / assertAlmostEqual(delta=...) / error msg: show the difference between the 2 numbers in case of failure

* safe_repr() diff

* also show difference when passing 'places' argument

* refactoring

* update Misc/NEWS
Lib/unittest/case.py
Lib/unittest/test/test_assertions.py
Misc/NEWS