diff options
author | Guido van Rossum <guido@python.org> | 1997-10-01 04:39:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-01 04:39:05 (GMT) |
commit | a008fa52be8acac0de95a03e4dc030d444e6b426 (patch) | |
tree | d6bce623687cf394ec4f2ff3398ff0f3e324965d /Lib/test/test_socket.py | |
parent | 0cb96de2699fa032ef1379ebb62a4dfb66ee5fde (diff) | |
download | cpython-a008fa52be8acac0de95a03e4dc030d444e6b426.zip cpython-a008fa52be8acac0de95a03e4dc030d444e6b426.tar.gz cpython-a008fa52be8acac0de95a03e4dc030d444e6b426.tar.bz2 |
Fixed test for socket.error to work when it's a class exception.
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 |