Suppress hex/oct constant warnings in <string> on 64-bit platforms,
authorGuido van Rossum <guido@python.org>
Thu, 19 Sep 2002 00:42:16 +0000 (00:42 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 19 Sep 2002 00:42:16 +0000 (00:42 +0000)
because there test_grammar.py pulls them out of strings there.

Lib/test/regrtest.py

index c1740833286ecf9e4337c0b3e19ad02289a1c937..2870daa77c12c4477159d7539f06d50d6a7193f6 100755 (executable)
@@ -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