summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-12 21:55:51 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-12 21:55:51 (GMT)
commitdc15c27f505930a69c73f8c2baf1f9caff9252ef (patch)
tree25b0ece882c20db0290430df6811f54a0fab4d3d /Lib/test
parent715eca932e9ceaefbb4a3dcc21671b02dd7b4112 (diff)
downloadcpython-dc15c27f505930a69c73f8c2baf1f9caff9252ef.zip
cpython-dc15c27f505930a69c73f8c2baf1f9caff9252ef.tar.gz
cpython-dc15c27f505930a69c73f8c2baf1f9caff9252ef.tar.bz2
Suppress warnings about test_grammar.py that can't be suppressed inside
that file itself (because it's the parser that reports them).
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/regrtest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 1fa5d50..dee2847 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -63,6 +63,12 @@ import getopt
import traceback
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