From c34c4fc3ab497ec1dd4f8c921798927d1b6d13e2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 19 Sep 2002 00:42:16 +0000 Subject: Suppress hex/oct constant warnings in on 64-bit platforms, because there test_grammar.py pulls them out of strings there. --- Lib/test/regrtest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index c174083..2870daa 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 -- cgit v0.12