[Python-checkins] CVS: python/dist/src/Lib/test test_regex.py,1.5,1.6

Fred L. Drake python-dev@python.org
Sat, 23 Dec 2000 14:08:30 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv15551/Lib/test

Modified Files:
	test_regex.py 
Log Message:

The regression test for the regex module should not trip the deprecation
warning for that module, so suppress just that one warning.


Index: test_regex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_regex.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** test_regex.py	2000/10/23 17:22:08	1.5
--- test_regex.py	2000/12/23 22:08:27	1.6
***************
*** 1,3 ****
--- 1,6 ----
  from test_support import verbose
+ import warnings
+ warnings.filterwarnings("ignore", "the regex module is deprecated",
+                         DeprecationWarning, "test_regex")
  import regex
  from regex_syntax import *