Mailing List Archive

python/dist/src/Lib/test regrtest.py,1.92,1.93
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv20542

Modified Files:
regrtest.py
Log Message:
Suppress warnings about test_grammar.py that can't be suppressed inside
that file itself (because it's the parser that reports them).


Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.92
retrieving revision 1.93
diff -C2 -d -r1.92 -r1.93
*** regrtest.py 30 Jul 2002 23:26:00 -0000 1.92
--- regrtest.py 12 Aug 2002 21:55:51 -0000 1.93
***************
*** 64,67 ****
--- 64,73 ----
import random
import StringIO
+ import warnings
+
+ # I see no other way to suppress these warnings;
+ # putting them in test_grammar.py has no effect:
+ warnings.filterwarnings("ignore", "hex/oct constants", DeprecationWarning,
+ ".*test.test_grammar$")

from test import test_support