summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-19 00:42:16 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-19 00:42:16 (GMT)
commitc34c4fc3ab497ec1dd4f8c921798927d1b6d13e2 (patch)
treea0ff0b0c794c7780d48c5f366609d719bef7d2ac /Lib/test
parent2c96ab2b61dc5b58bd9f9724c89e0d42d172662d (diff)
downloadcpython-c34c4fc3ab497ec1dd4f8c921798927d1b6d13e2.zip
cpython-c34c4fc3ab497ec1dd4f8c921798927d1b6d13e2.tar.gz
cpython-c34c4fc3ab497ec1dd4f8c921798927d1b6d13e2.tar.bz2
Suppress hex/oct constant warnings in <string> on 64-bit platforms,
because there test_grammar.py pulls them out of strings there.
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/regrtest.py5
1 files changed, 5 insertions, 0 deletions
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 <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