[Python-checkins] r42485 - python/trunk/Lib/test/test_urllib2.py

tim.peters python-checkins at python.org
Sun Feb 19 06:09:01 CET 2006


Author: tim.peters
Date: Sun Feb 19 06:09:00 2006
New Revision: 42485

Modified:
   python/trunk/Lib/test/test_urllib2.py
Log:
test_gopher():  Squash another deprecation
warning about gopherlib.


Modified: python/trunk/Lib/test/test_urllib2.py
==============================================================================
--- python/trunk/Lib/test/test_urllib2.py	(original)
+++ python/trunk/Lib/test/test_urllib2.py	Sun Feb 19 06:09:00 2006
@@ -704,6 +704,11 @@
         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',


More information about the Python-checkins mailing list