summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
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