]> granicus.if.org Git - python/commitdiff
Merged revisions 77374 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 8 Jan 2010 19:42:10 +0000 (19:42 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 8 Jan 2010 19:42:10 +0000 (19:42 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77374 | antoine.pitrou | 2010-01-08 20:39:04 +0100 (ven., 08 janv. 2010) | 4 lines

  Remove obsolete warning filters in regrtest.py (from issue #7092 -- patch by
  Florent Xicluna).
........

Lib/test/regrtest.py

index eab22d66ca069553b9d5f6ec0809b893ea6656af..4b9ef1a4ae87bb3972c8faa6568e0f264581953d 100755 (executable)
@@ -159,16 +159,6 @@ import warnings
 import unittest
 from inspect import isabstract
 
-# 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.maxsize > 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/)
 for mod in ("ctypes", "gzip", "zipfile", "tarfile", "encodings.zlib_codec",