From dc15c27f505930a69c73f8c2baf1f9caff9252ef Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 12 Aug 2002 21:55:51 +0000 Subject: Suppress warnings about test_grammar.py that can't be suppressed inside that file itself (because it's the parser that reports them). --- Lib/test/regrtest.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v0.12