Commit 5bfc3872 authored by Denis Bilenko's avatar Denis Bilenko

test_socket.py: fix 2.6 failure

parent ca6bea7e
......@@ -295,7 +295,7 @@ class GeneralModuleTests(greentest.TestCase):
# On some versions, this loses a reference
orig = sys.getrefcount(__name__)
socket.getnameinfo(__name__,0)
except SystemError:
except (SystemError, TypeError):
if sys.getrefcount(__name__) <> orig:
self.fail("socket.getnameinfo loses a reference")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment