Fixed test for socket.error to work when it's a class exception.

This commit is contained in:
Guido van Rossum 1997-10-01 04:39:05 +00:00
parent 0cb96de269
commit a008fa52be
1 changed files with 2 additions and 1 deletions

View File

@ -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