Suppress new deprecation warnings when running the
test suite.
For urllib2, move the import of gopherlib into the
only function that uses it: users (including the
test suite) certainly shouldn't see a deprecation
warning just because they import urllib2! If they
actually use gopher_open(), fine, _then_ they should
see a deprecation warning.
diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py
index 394d966..fd10b68 100644
--- a/Lib/test/test_sundry.py
+++ b/Lib/test/test_sundry.py
@@ -4,6 +4,11 @@
warnings.filterwarnings('ignore', r".*posixfile module",
DeprecationWarning, 'posixfile$')
+warnings.filterwarnings("ignore",
+ "the gopherlib module is deprecated",
+ DeprecationWarning,
+ ".*test_sundry")
+
from test.test_support import verbose
import BaseHTTPServer