[Python-checkins] python/dist/src/Lib/test/output test_warnings,NONE,1.1

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Fri, 11 Jul 2003 08:38:01 -0700


Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory sc8-pr-cvs1:/tmp/cvs-serv2922/test/output

Added Files:
	test_warnings 
Log Message:
Change warnings to avoid importing re module during startup.

Add API function simplefilter() that does not create or install
regular expressions to match message or module.  Extend the filters
data structure to store None as an alternative to re.compile("").

Move the _test() function to test_warnings and add some code to try
and avoid disturbing the global state of the warnings module.


--- NEW FILE: test_warnings ---
test_warnings
('ignore', False, 'FutureWarning', False, 0)
('ignore', True, 'OverflowWarning', True, 0)
('ignore', True, 'PendingDeprecationWarning', True, 0)
Lib/test/test_warnings.py:31: UserWarning: hello world
Lib/test/test_warnings.py:32: UserWarning: hello world
Lib/test/test_warnings.py:33: DeprecationWarning: hello world
Lib/test/test_warnings.py:35: UserWarning: hello world
Caught UserWarning: hello world
Caught AssertionError: invalid action: 'booh'