diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-03-14 20:43:53 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-03-14 20:43:53 (GMT) |
commit | 38b968b9131820d089e4dc68b11675c3bc98a631 (patch) | |
tree | 0595d65dfc835b6599bbb5ad9e116c4c03a53a48 /Lib/test/test_urllib.py | |
parent | c17adf41511f7165935074bc505e09e0574f59be (diff) | |
download | cpython-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.py | 4 |
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""" |