Commit 256dfa9f authored by Denis Bilenko's avatar Denis Bilenko

test__api.py: ignore tests with socketpair on windows

parent d019fc6a
...@@ -62,6 +62,8 @@ class Test(greentest.TestCase): ...@@ -62,6 +62,8 @@ class Test(greentest.TestCase):
assert 'Invalid switch' in str(result), repr(str(result)) assert 'Invalid switch' in str(result), repr(str(result))
switcher.kill() switcher.kill()
if hasattr(socket, 'socketpair'):
def _test_wait_read_invalid_switch(self, sleep): def _test_wait_read_invalid_switch(self, sleep):
sock1, sock2 = socket.socketpair() sock1, sock2 = socket.socketpair()
try: try:
......
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