diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-01 16:18:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-01 16:18:56 (GMT) |
commit | 5d7a8d0c13737fd531b722ad76c505ef47aac96a (patch) | |
tree | 2ad8be6cb6bc56b9e8847468aad7edb1416472b5 /Misc/NEWS | |
parent | 1374dbb6940f29c49c2966551a06015857c942cc (diff) | |
download | cpython-5d7a8d0c13737fd531b722ad76c505ef47aac96a.zip cpython-5d7a8d0c13737fd531b722ad76c505ef47aac96a.tar.gz cpython-5d7a8d0c13737fd531b722ad76c505ef47aac96a.tar.bz2 |
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
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -10,7 +10,7 @@ What's New in Python 3.7.0 alpha 1? Core and Builtins ----------------- -- bpo-12414: sys.getsizeof() on a code object now returns the sizes +- bpo-12414: sys.getsizeof() on a code object now returns the sizes which includes the code struct and sizes of objects which it references. Patch by Dong-hee Na. @@ -317,6 +317,10 @@ Extension Modules Library ------- +- bpo-30190: unittest's assertAlmostEqual and assertNotAlmostEqual provide a + better message in case of failure which includes the difference between + left and right arguments. (patch by Giampaolo Rodola') + - bpo-30101: Add support for curses.A_ITALIC. - bpo-29822: inspect.isabstract() now works during __init_subclass__. Patch |