mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fixed test for socket.error to work when it's a class exception.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user