From: Tim Peters <tim.peters@gmail.com> Date: Sun, 19 Feb 2006 05:09:00 +0000 (+0000) Subject: test_gopher(): Squash another deprecation X-Git-Tag: v2.5a0~599 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a8ec996ce8c8f941204218fcc4076a0ffb50360;p=python test_gopher(): Squash another deprecation warning about gopherlib. --- diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 0b2a65061c..5710444017 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',