diff options
author | Guido van Rossum <guido@python.org> | 2002-08-12 21:55:51 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-12 21:55:51 +0000 |
commit | dc15c27f505930a69c73f8c2baf1f9caff9252ef (patch) | |
tree | 25b0ece882c20db0290430df6811f54a0fab4d3d /Lib/test/regrtest.py | |
parent | 715eca932e9ceaefbb4a3dcc21671b02dd7b4112 (diff) | |
download | cpython-git-dc15c27f505930a69c73f8c2baf1f9caff9252ef.tar.gz |
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/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 1fa5d506d4..dee2847a45 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 |