summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2009-04-02 03:20:38 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2009-04-02 03:20:38 (GMT)
commit345b2fe21e7c18a7fd5cac4685e3daaf463a6b38 (patch)
treef77081917d117ef94bb77f71eccdae0cca44b327 /Misc/NEWS
parentc4f90ebea78fab0d45340f4fb4b11298ee3ffdca (diff)
downloadcpython-345b2fe21e7c18a7fd5cac4685e3daaf463a6b38.zip
cpython-345b2fe21e7c18a7fd5cac4685e3daaf463a6b38.tar.gz
cpython-345b2fe21e7c18a7fd5cac4685e3daaf463a6b38.tar.bz2
Better exception messages for unittest assert methods.
- unittest.assertNotEqual() now uses the inequality operator (!=) instead of the equality operator. - Default assertTrue and assertFalse messages are now useful. - TestCase has a longMessage attribute. This defaults to False, but if set to True useful error messages are shown in addition to explicit messages passed to assert methods. Issue #5663
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 036a061..dd8c0ad 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -202,6 +202,14 @@ Core and Builtins
Library
-------
+- unittest.assertNotEqual() now uses the inequality operator (!=) instead
+ of the equality operator.
+
+- Issue #5663: better failure messages for unittest asserts. Default assertTrue
+ and assertFalse messages are now useful. TestCase has a longMessage attribute.
+ This defaults to False, but if set to True useful error messages are shown in
+ addition to explicit messages passed to assert methods.
+
- Issue #3110: Add additional protect around SEM_VALUE_MAX for multiprocessing
- In Pdb, prevent the reassignment of __builtin__._ by sys.displayhook on