diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-04-03 18:33:29 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-04-03 18:33:29 (GMT) |
commit | e6dae6c655bf1e5542f8d3821e2710e9fc0b5762 (patch) | |
tree | 8065ac4c779d5d4e446af8fa45fe160658b73e62 /Misc | |
parent | c4a106733cd464ec2d2746fd3e868f09734eeb10 (diff) | |
download | cpython-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 ----- |