diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-02-19 05:09:00 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-02-19 05:09:00 (GMT) |
commit | 2a8ec996ce8c8f941204218fcc4076a0ffb50360 (patch) | |
tree | ca6b738f87415d30856833871221bbd5148002c0 /Lib/test/test_urllib2.py | |
parent | 313fcd41abdb9f31f745e6554828de5a6cb5d150 (diff) | |
download | cpython-2a8ec996ce8c8f941204218fcc4076a0ffb50360.zip cpython-2a8ec996ce8c8f941204218fcc4076a0ffb50360.tar.gz cpython-2a8ec996ce8c8f941204218fcc4076a0ffb50360.tar.bz2 |
test_gopher(): Squash another deprecation
warning about gopherlib.
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r-- | Lib/test/test_urllib2.py | 5 |
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', |