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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc15c27f505930a69c73f8c2baf1f9caff9252ef;p=python 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 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