summaryrefslogtreecommitdiff
path: root/Lib/test/test_urllib2net.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 23:35:18 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 23:35:18 +0200
commit3438fa496db50ef3cafcfdb3243f2f769bc12ebe (patch)
tree8c480821ca46d7d91d4f3ba8c8343afe389d7208 /Lib/test/test_urllib2net.py
parent6eda46de99189812e6982f568bbe941346918964 (diff)
downloadcpython-git-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.gz
Get rig of EnvironmentError (#16705)
Diffstat (limited to 'Lib/test/test_urllib2net.py')
-rw-r--r--Lib/test/test_urllib2net.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
index 7f3c93adaa..b3c1a68234 100644
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -216,7 +216,7 @@ class OtherNetworkTests(unittest.TestCase):
debug(url)
try:
f = urlopen(url, req, TIMEOUT)
- except EnvironmentError as err:
+ except OSError as err:
debug(err)
if expected_err:
msg = ("Didn't get expected error(s) %s for %s %s, got %s: %s" %