diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-02-18 04:14:16 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-02-18 04:14:16 (GMT) |
commit | e2c9a6cea7f49cc7485ced3ed907c917e3ad656a (patch) | |
tree | 6d28acef9625c2075be879361341c90fe62d8205 /Lib/test/test___all__.py | |
parent | 24f7cad6ca3140bf0dada04261cb372be658832e (diff) | |
download | cpython-e2c9a6cea7f49cc7485ced3ed907c917e3ad656a.zip cpython-e2c9a6cea7f49cc7485ced3ed907c917e3ad656a.tar.gz cpython-e2c9a6cea7f49cc7485ced3ed907c917e3ad656a.tar.bz2 |
Suppress new deprecation warnings when running the
test suite.
For urllib2, move the import of gopherlib into the
only function that uses it: users (including the
test suite) certainly shouldn't see a deprecation
warning just because they import urllib2! If they
actually use gopher_open(), fine, _then_ they should
see a deprecation warning.
Diffstat (limited to 'Lib/test/test___all__.py')
-rw-r--r-- | Lib/test/test___all__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index 683867a..7bf5314 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -9,6 +9,10 @@ warnings.filterwarnings("ignore", ".* 'pre' .*", DeprecationWarning, r'pre$') warnings.filterwarnings("ignore", ".* regsub .*", DeprecationWarning, r'^regsub$') +warnings.filterwarnings("ignore", + "the gopherlib module is deprecated", + DeprecationWarning, + "<string>") class AllTest(unittest.TestCase): |