]> granicus.if.org Git - python/commitdiff
Remove obsolete warning filters in regrtest.py (from issue #7092 -- patch by
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 8 Jan 2010 19:39:04 +0000 (19:39 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 8 Jan 2010 19:39:04 +0000 (19:39 +0000)
Florent Xicluna).

Lib/test/regrtest.py

index fd6cafce7ecc4a72e98fc6c99b4e22b85a110cf1..6bc0dc396f2898948be470d77685146283d67b9b 100755 (executable)
@@ -160,15 +160,6 @@ import traceback
 import warnings
 import unittest
 
-# I see no other way to suppress these warnings;
-# 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>")
 
 # Ignore ImportWarnings that only occur in the source tree,
 # (because of modules with the same name as source-directories in Modules/)