mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Fixed test for socket.error to work when it's a class exception.
This commit is contained in:
parent
0cb96de269
commit
a008fa52be
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ def missing_ok(str):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
print socket.error
|
try: raise socket.error
|
||||||
|
except socket.error: print "socket.error"
|
||||||
|
|
||||||
socket.AF_INET
|
socket.AF_INET
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue