classification
Title: test_readline hangs
Type: behavior Stage: test needed
Components: Tests Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: martin.panter, wmayner
Priority: normal Keywords:

Created on 2017-05-17 21:37 by wmayner, last changed 2017-05-27 02:10 by martin.panter.

Messages (2)
msg293888 - (view) Author: (wmayner) Date: 2017-05-17 21:37
I'm trying to build Python 3.6.1 from source with the `--enable-optimizations` configuration option. As I understand it, this entails running and profiling all the tests for PGO. When `test_readline` is run, it hangs.

OS: Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux

Please let me know what other information I should provide.
msg294574 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2017-05-27 02:10
Perhaps if you ran the tests in verbose mode, that could narrow down which test it hangs at. Also, if you can capture a KeyboardInterrupt stack trace, that may help. Not sure if it works with your build setup, but maybe you can run something like

./python -m unittest -v test.test_readline

Not too long ago, I added some tests that run a child process in a pseudoterminal (see the “run_pty” function). There were a few platform specific problems getting that working, so there is a good chance your problem may be related.

I wonder if test hangs when you don’t use “--enable-optimizations”?
History
Date User Action Args
2017-05-27 02:10:19martin.pantersetnosy: + martin.panter

messages: + msg294574
stage: test needed
2017-05-17 21:37:35wmaynercreate