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:
parent
2c96ab2b61
commit
c34c4fc3ab
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue