Skip to content

Commit

Permalink
test_gopher(): Squash another deprecation
Browse files Browse the repository at this point in the history
warning about gopherlib.
  • Loading branch information
tim-one committed Feb 19, 2006
1 parent 313fcd4 commit 2a8ec99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Lib/test/test_urllib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,11 @@ def test_ftp(self):
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',
Expand Down

0 comments on commit 2a8ec99

Please sign in to comment.