diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index c1740833286..2870daa77c1 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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 , because for 64-bit platforms, + # that's where test_grammar.py hides them. + warnings.filterwarnings("ignore", "hex/oct constants", FutureWarning, + "") from test import test_support