This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bmoyles
Recipients bmoyles
Date 2017-09-12.22:32:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505255563.72.0.314933914484.issue31436@psf.upfronthosting.co.za>
In-reply-to
Content
In building Python 3.6.2 on Ubuntu 16.04, test_socket repeatedly fails at
======================================================================
FAIL: testWithTimeoutTriggeredSend (test.test_socket.SendfileUsingSendfileTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/python/Python-3.6.2/Lib/test/test_socket.py", line 277, in _tearDown
    raise exc
  File "/mnt/python/Python-3.6.2/Lib/test/test_socket.py", line 295, in clientRun
    test_func()
  File "/mnt/python/Python-3.6.2/Lib/test/test_socket.py", line 5358, in _testWithTimeoutTriggeredSend
    self.assertRaises(socket.timeout, meth, file)
AssertionError: timeout not raised by _sendfile_use_sendfile

----------------------------------------------------------------------

It appears this is failing as _sendfile_use_sendfile completes before the 0.01s timeout set in _testWithTimeoutTriggeredSend

Adjusting FILESIZE in class SendfileUsingSendTest to 100MB instead of 10MB (or creating FILESIZE on class SendfileUsingSendfileTest so only that set of tests uses a 100MB file) succeeds.

issue17085 was a similar bug from a few years ago but I'm not sure that this can or should be solved in the same way...
History
Date User Action Args
2017-09-12 22:32:43bmoylessetrecipients: + bmoyles
2017-09-12 22:32:43bmoylessetmessageid: <1505255563.72.0.314933914484.issue31436@psf.upfronthosting.co.za>
2017-09-12 22:32:43bmoyleslinkissue31436 messages
2017-09-12 22:32:43bmoylescreate