mirror of https://github.com/python/cpython
Suppress warnings about test_grammar.py that can't be suppressed inside
that file itself (because it's the parser that reports them).
This commit is contained in:
parent
715eca932e
commit
dc15c27f50
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue