test_gopher(): Squash another deprecation

warning about gopherlib.
This commit is contained in:
Tim Peters 2006-02-19 05:09:00 +00:00
parent 313fcd41ab
commit 2a8ec996ce

View file

@ -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',