summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-02-19 05:09:00 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-02-19 05:09:00 (GMT)
commit2a8ec996ce8c8f941204218fcc4076a0ffb50360 (patch)
treeca6b738f87415d30856833871221bbd5148002c0 /Lib
parent313fcd41abdb9f31f745e6554828de5a6cb5d150 (diff)
downloadcpython-2a8ec996ce8c8f941204218fcc4076a0ffb50360.zip
cpython-2a8ec996ce8c8f941204218fcc4076a0ffb50360.tar.gz
cpython-2a8ec996ce8c8f941204218fcc4076a0ffb50360.tar.bz2
test_gopher(): Squash another deprecation
warning about gopherlib.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_urllib2.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 0b2a650..5710444 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -704,6 +704,11 @@ class NetworkTests(unittest.TestCase):
self._test_urls(urls, self._extra_handlers())
def test_gopher(self):
+ import warnings
+ warnings.filterwarnings("ignore",
+ "the gopherlib module is deprecated",
+ DeprecationWarning,
+ "urllib2$")
urls = [
# Thanks to Fred for finding these!
'gopher://gopher.lib.ncsu.edu/11/library/stacks/Alex',