diff options
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | Lib/test/test_socket.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index c61a2c8..b602c91 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -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 |