From: Guido van Rossum Date: Mon, 12 Aug 2002 21:55:51 +0000 (+0000) Subject: Suppress warnings about test_grammar.py that can't be suppressed inside X-Git-Tag: v2.3c1~4519 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc15c27f505930a69c73f8c2baf1f9caff9252ef;p=thirdparty%2FPython%2Fcpython.git Suppress warnings about test_grammar.py that can't be suppressed inside that file itself (because it's the parser that reports them). --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 1fa5d506d46a..dee2847a45d0 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