]> granicus.if.org Git - python/commit
Implement a contextmanager test.test_support.catch_warning that can
authorWalter Dörwald <walter@livinglogic.de>
Tue, 3 Apr 2007 18:33:29 +0000 (18:33 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Tue, 3 Apr 2007 18:33:29 +0000 (18:33 +0000)
commite6dae6c655bf1e5542f8d3821e2710e9fc0b5762
tree8065ac4c779d5d4e446af8fa45fe160658b73e62
parentc4a106733cd464ec2d2746fd3e868f09734eeb10
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.
Lib/test/test_structmembers.py
Lib/test/test_support.py
Lib/test/test_warnings.py
Misc/NEWS