summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-04-03 18:33:29 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-04-03 18:33:29 (GMT)
commite6dae6c655bf1e5542f8d3821e2710e9fc0b5762 (patch)
tree8065ac4c779d5d4e446af8fa45fe160658b73e62 /Misc
parentc4a106733cd464ec2d2746fd3e868f09734eeb10 (diff)
downloadcpython-e6dae6c655bf1e5542f8d3821e2710e9fc0b5762.zip
cpython-e6dae6c655bf1e5542f8d3821e2710e9fc0b5762.tar.gz
cpython-e6dae6c655bf1e5542f8d3821e2710e9fc0b5762.tar.bz2
Implement a contextmanager test.test_support.catch_warning that can
be used to catch the last warning issued by the warning framework. Change test_warnings.py and test_structmembers.py to use this new contextmanager.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 8ef7acb..d8f51bc 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -713,6 +713,9 @@ Tests
- Fix bsddb test_basics.test06_Transactions to check the version
number properly.
+- test.test_support.catch_warning is a new context manager that can be used
+ to catch the warnings issued by the warning framework.
+
Tools
-----