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

because there test_grammar.py pulls them out of strings there.
This commit is contained in:
Guido van Rossum 2002-09-19 00:42:16 +00:00
parent 2c96ab2b61
commit c34c4fc3ab
1 changed files with 5 additions and 0 deletions

View File

@ -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