summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllibnet.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-06-11 21:09:43 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-06-11 21:09:43 (GMT)
commit130a566a13975d761049ad197fceeff420b6c662 (patch)
tree75c1058bfb7664298db978b5625076563b19c349 /Lib/test/test_urllibnet.py
parentdbb7aa5bd1a07c75bb769ce978161863e31232ba (diff)
downloadcpython-130a566a13975d761049ad197fceeff420b6c662.zip
cpython-130a566a13975d761049ad197fceeff420b6c662.tar.gz
cpython-130a566a13975d761049ad197fceeff420b6c662.tar.bz2
Suppress a couple more DeprecationWarnings in the test suite.
Diffstat (limited to 'Lib/test/test_urllibnet.py')
-rw-r--r--Lib/test/test_urllibnet.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
index 4c8ba2d..42ebb6e 100644
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -91,7 +91,8 @@ class urlopenNetworkTests(unittest.TestCase):
# test getcode() with the fancy opener to get 404 error codes
URL = "http://www.example.com/XXXinvalidXXX"
with support.transient_internet(URL):
- open_url = urllib.request.FancyURLopener().open(URL)
+ with self.assertWarns(DeprecationWarning):
+ open_url = urllib.request.FancyURLopener().open(URL)
try:
code = open_url.getcode()
finally: