Commit 5df33c29 authored by Jason Madden's avatar Jason Madden

Notes on why InterruptedRecvTimeoutTest is disabled under python 3.4: gevent rocks.

parent 08d68e9c
...@@ -394,9 +394,19 @@ if sys.version_info[:2] >= (3, 4): ...@@ -394,9 +394,19 @@ if sys.version_info[:2] >= (3, 4):
'test_socket.GeneralModuleTests.test_str_for_enums', 'test_socket.GeneralModuleTests.test_str_for_enums',
'test_socket.GeneralModuleTests.testGetaddrinfo', 'test_socket.GeneralModuleTests.testGetaddrinfo',
]
# XXX: These all produce timeout errors that aren't supposed to if sys.version_info[:2] == (3, 4):
# be there. Needs investigation. disabled_tests += [
# These are all expecting that a signal (sigalarm) that
# arrives during a blocking call should raise
# InterruptedError with errno=EINTR. gevent does not do
# this, instead its loop keeps going and raises a timeout
# (which fails the test). HOWEVER: Python 3.5 fixed this
# problem and started raising a timeout,
# (https://docs.python.org/3/whatsnew/3.5.html#pep-475-retry-system-calls-failing-with-eintr)
# and removed these tests (InterruptedError is no longer
# raised). So basically, gevent was ahead of its time.
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvIntoTimeout', 'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvIntoTimeout',
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvTimeout', 'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvTimeout',
'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvfromIntoTimeout', 'test_socket.InterruptedRecvTimeoutTest.testInterruptedRecvfromIntoTimeout',
......
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