summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2009-03-31 16:54:10 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2009-03-31 16:54:10 (GMT)
commit2839985c7e717c103f3281abef360ff781b3ddb8 (patch)
treef4d31e53142ed01ebda1b5fe362dc4b0e557d020 /Misc
parentc2784229b858c1cb74920681846a62797a71c244 (diff)
downloadcpython-2839985c7e717c103f3281abef360ff781b3ddb8.zip
cpython-2839985c7e717c103f3281abef360ff781b3ddb8.tar.gz
cpython-2839985c7e717c103f3281abef360ff781b3ddb8.tar.bz2
The unittest.TestCase.assertEqual() now displays the differences in lists,
tuples, dicts and sets on failure. Many new handy type and comparison specific assert* methods have been added that fail with error messages actually useful for debugging. Contributed in by Google and completed with help from mfoord and GvR at PyCon 2009 sprints. Discussion lives in http://bugs.python.org/issue2578.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index a792570..9f517f3 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -217,6 +217,15 @@ Library
- Issue #1034053: unittest now supports skipping tests and expected failures.
+- The unittest.TestCase.assertRaises() method now returns a context manager when
+ not given a callable so that code to be tested can be written inline using
+ a with statement.
+
+- The unittest.TestCase.assertEqual() now displays the differences in lists,
+ tuples, dicts and sets on failure. Many new handy type and comparison
+ specific assert* methods have been added that fail with error messages
+ actually useful for debugging. Contributed in part by Google. [Issue #2578]
+
- Issue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loop
forever on incomplete input. That caused tarfile.open() to hang when used
with mode 'r' or 'r:bz2' and a fileobj argument that contained no data or