STINNER Victor added the comment:

The bug only occurs in Python 3.5, right?

> Sometimes the test suite freezes in test_interrupted_write_retry_text 
> (test.test_io.CSignalsTest).

How do you run the test suite? Is your system heavily loaded? Is it "fast"?

This is an obvious race condition in the test if SIGARLM is send before write() 
is called:

            signal.alarm(1)
            # Expected behaviour:
            # - first raw write() is partial (because of the limited pipe buffer
            #   and the first alarm)
            # - second raw write() returns EINTR (because of the second alarm)
            # - subsequent write()s are successful (either partial or complete)
            self.assertEqual(N, wio.write(item * N))

1 second should be enough :-)

--

Or it is maybe a regression caused by the changeset 5b63010be19e of issue 
#23285 (PEP 475).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23680>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to