Commit c34c4fc3 authored by Guido van Rossum's avatar Guido van Rossum

Suppress hex/oct constant warnings in <string> on 64-bit platforms,

because there test_grammar.py pulls them out of strings there.
parent 2c96ab2b
......@@ -70,6 +70,11 @@ from sets import Set
# putting them in test_grammar.py has no effect:
warnings.filterwarnings("ignore", "hex/oct constants", FutureWarning,
".*test.test_grammar$")
if sys.maxint > 0x7fffffff:
# Also suppress them in <string>, because for 64-bit platforms,
# that's where test_grammar.py hides them.
warnings.filterwarnings("ignore", "hex/oct constants", FutureWarning,
"<string>")
from test import test_support
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment