mirror of
https://github.com/python/cpython.git
synced 2026-01-30 22:55:41 +00:00
Fixed test for socket.error to work when it's a class exception.
This commit is contained in:
parent
0cb96de269
commit
a008fa52be
@ -20,7 +20,8 @@ def missing_ok(str):
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
print socket.error
|
||||
try: raise socket.error
|
||||
except socket.error: print "socket.error"
|
||||
|
||||
socket.AF_INET
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user