Commit 4d8a23c6 authored by Jason Madden's avatar Jason Madden

Attempt to fix test__socket_ex on windows using a standard constant.

parent 3a3db2a7
import greentest
from gevent import socket
import errno
class TestClosedSocket(greentest.TestCase):
......@@ -11,8 +12,8 @@ class TestClosedSocket(greentest.TestCase):
sock.close()
try:
sock.send(b'a', timeout=1)
except socket.error as ex:
if ex.args[0] != 9:
except (socket.error, OSError) as ex:
if ex.args[0] != errno.EBADF:
raise
......@@ -27,6 +28,7 @@ class TestRef(greentest.TestCase):
assert sock.ref is False, sock.ref
assert sock._read_event.ref is False, sock.ref
assert sock._write_event.ref is False, sock.ref
sock.close()
if __name__ == '__main__':
......
......@@ -92,7 +92,6 @@ if sys.platform == 'win32':
if PY3:
# XXX need investigating
FAILING_TESTS += [
'test__socket_ex.py',
'test__subprocess.py', # universal newlines are borked?
'FLAKY test__api_timeout.py',
]
......
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