Commit [d56362] legacy-trunk Maximize Restore History

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.

Brett Cannon Brett Cannon 2008-09-02

changed Doc/library/warnings.rst
changed Lib/BaseHTTPServer.py
changed Lib/asynchat.py
changed Lib/cgi.py
changed Lib/httplib.py
changed Lib/mimetools.py
changed Lib/test/test_support.py
changed Lib/test/test_warnings.py
changed Lib/warnings.py
changed Misc/NEWS
changed Python/_warnings.c
Doc/library/warnings.rst Diff Switch to side-by-side view
Loading...
Lib/BaseHTTPServer.py Diff Switch to side-by-side view
Loading...
Lib/asynchat.py Diff Switch to side-by-side view
Loading...
Lib/cgi.py Diff Switch to side-by-side view
Loading...
Lib/httplib.py Diff Switch to side-by-side view
Loading...
Lib/mimetools.py Diff Switch to side-by-side view
Loading...
Lib/test/test_support.py Diff Switch to side-by-side view
Loading...
Lib/test/test_warnings.py Diff Switch to side-by-side view
Loading...
Lib/warnings.py Diff Switch to side-by-side view
Loading...
Misc/NEWS Diff Switch to side-by-side view
Loading...
Python/_warnings.c Diff Switch to side-by-side view
Loading...