mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
test_gopher(): Squash another deprecation
warning about gopherlib.
This commit is contained in:
parent
313fcd41ab
commit
2a8ec996ce
1 changed files with 5 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue