]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Move test.test_support.catch_warning() to the warnings module, rename it
authorBrett Cannon <bcannon@gmail.com>
Tue, 2 Sep 2008 01:25:16 +0000 (01:25 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 2 Sep 2008 01:25:16 +0000 (01:25 +0000)
commit1eaf0742d877fd9d84d6ed82a04bc33b027e9ad0
tree1c1ee3a5dee04f5f4657b707e9d54ca2e28b1505
parent86533776c291c031853609ceaeda96eb2808e4ee
Move test.test_support.catch_warning() to the warnings module, rename it
catch_warnings(), and clean up the API.

While expanding the test suite, a bug was found where a warning about the
'line' argument to showwarning() was not letting functions with '*args' go
without a warning.

Closes issue 3602.
Code review by Benjamin Peterson.
Doc/library/warnings.rst
Lib/BaseHTTPServer.py
Lib/asynchat.py
Lib/cgi.py
Lib/httplib.py
Lib/mimetools.py
Lib/test/test_support.py
Lib/test/test_warnings.py
Lib/warnings.py
Misc/NEWS
Python/_warnings.c