summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2009-05-02 22:43:34 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2009-05-02 22:43:34 (GMT)
commit07ef487a96b826584f7871629c4cc4754e41242b (patch)
tree8c41c3adc7021d39841b87ffaf44afecc50794b1 /Misc
parent7430989cdadfb5aacef6909a3e2c033a0209699b (diff)
downloadcpython-07ef487a96b826584f7871629c4cc4754e41242b.zip
cpython-07ef487a96b826584f7871629c4cc4754e41242b.tar.gz
cpython-07ef487a96b826584f7871629c4cc4754e41242b.tar.bz2
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS11
1 files changed, 11 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index e7516bb..579dcb4 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -359,6 +359,17 @@ Library
- unittest.assertNotEqual() now uses the inequality operator (!=) instead
of the equality operator.
+- Issue #5679: The methods unittest.TestCase.addCleanup and doCleanups were added.
+ addCleanup allows you to add cleanup functions that will be called
+ unconditionally (after setUp if setUp fails, otherwise after tearDown). This
+ allows for much simpler resource allocation and deallocation during tests.
+
+- Issue #3379: unittest.main now takes an optional exit argument. If False main
+ doesn't call sys.exit allowing it to be used from the interactive interpreter.
+
+- Issue #5728: unittest.TestResult has new startTestRun and stopTestRun methods;
+ called immediately before and after a test run.
+
- 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