From: Guido van Rossum Date: Wed, 1 Oct 1997 04:39:05 +0000 (+0000) Subject: Fixed test for socket.error to work when it's a class exception. X-Git-Tag: v1.5a4~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a008fa52be8acac0de95a03e4dc030d444e6b426;p=python Fixed test for socket.error to work when it's a class exception. --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index c61a2c8221..b602c91d65 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