summaryrefslogtreecommitdiff
path: root/Lib/test/test_urllib.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-03-14 13:43:53 -0700
committerSenthil Kumaran <senthil@uthcode.com>2012-03-14 13:43:53 -0700
commit966b6d34b1a02a304d4a0c6dbcd62a5cfff424af (patch)
tree28e2abe2f06e15f9dfe9a13d5b890d3f0eaa4c6b /Lib/test/test_urllib.py
parent7d1c351a190c573e3dc68db433165a9c372da075 (diff)
downloadcpython-966b6d34b1a02a304d4a0c6dbcd62a5cfff424af.tar.gz
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 85f8f841df..22ada56d0c 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"""