mirror of https://github.com/python/cpython.git
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…
Reference in New Issue