summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-09-06 19:25:46 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-09-06 19:25:46 (GMT)
commit4bc12ef47dd57abda134fc0e90f946d862d8989e (patch)
tree2737280117621973c50edcf4483dcaf173990f10 /Misc
parent972ee13e037432497fa003d4a786b2342a38db94 (diff)
downloadcpython-4bc12ef47dd57abda134fc0e90f946d862d8989e.zip
cpython-4bc12ef47dd57abda134fc0e90f946d862d8989e.tar.gz
cpython-4bc12ef47dd57abda134fc0e90f946d862d8989e.tar.bz2
Issue #9754: Similarly to assertRaises and assertRaisesRegexp, unittest
test cases now also have assertWarns and assertWarnsRegexp methods to check that a given warning type was triggered by the code under test.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index a64f694..d2d35d0 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,10 @@ Core and Builtins
Library
-------
+- Issue #9754: Similarly to assertRaises and assertRaisesRegexp, unittest
+ test cases now also have assertWarns and assertWarnsRegexp methods to
+ check that a given warning type was triggered by the code under test.
+
- Issue #5506: BytesIO objects now have a getbuffer() method exporting a
view of their contents without duplicating them. The view is both readable
and writable.