summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-03-14 20:43:53 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-03-14 20:43:53 (GMT)
commit38b968b9131820d089e4dc68b11675c3bc98a631 (patch)
tree0595d65dfc835b6599bbb5ad9e116c4c03a53a48 /Lib/test/test_urllib.py
parentc17adf41511f7165935074bc505e09e0574f59be (diff)
downloadcpython-38b968b9131820d089e4dc68b11675c3bc98a631.zip
cpython-38b968b9131820d089e4dc68b11675c3bc98a631.tar.gz
cpython-38b968b9131820d089e4dc68b11675c3bc98a631.tar.bz2
deprecated the old urllib primitives in 3.3 urllib package - issue 10050
Diffstat (limited to 'Lib/test/test_urllib.py')
-rw-r--r--Lib/test/test_urllib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index 85f8f84..22ada56 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -298,6 +298,10 @@ Content-Type: text/html; charset=iso-8859-1
finally:
self.unfakehttp()
+ def test_URLopener_deprecation(self):
+ with support.check_warnings(('',DeprecationWarning)):
+ warn = urllib.request.URLopener()
+
class urlretrieve_FileTests(unittest.TestCase):
"""Test urllib.urlretrieve() on local files"""