From: Guido van Rossum Date: Thu, 19 Sep 2002 00:42:16 +0000 (+0000) Subject: Suppress hex/oct constant warnings in on 64-bit platforms, X-Git-Tag: v2.3c1~4022 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c34c4fc3ab497ec1dd4f8c921798927d1b6d13e2;p=thirdparty%2FPython%2Fcpython.git Suppress hex/oct constant warnings in on 64-bit platforms, because there test_grammar.py pulls them out of strings there. --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index c1740833286e..2870daa77c12 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