[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: After starting Python from a command line instead of an icon, importing/running autotest results in the same three failures. -- ___ Python tracker

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I import autotest in IDLE's shell, test_code_module fails, test_importlib and test_warnings fail, as without IDLE, and test_gc and test_logging are new failures. (Results are easy to see because SystemExit is caught and ignored.) test

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The Python console exits because test.libregrtest.main.Regrtest._main calls sys.exit. test.autotest consists of from test.libregrtest import main main() The main call should be wrapped with try:...except sys.exit: pass The output also has

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 0:00:28 [ 25/407] test_asyncio F:\dev\3x\lib\asyncio\sslproto.py:330: ResourceWarning: unclosed transport source=self) test_code_module - multiple errors test test_importlib failed -- Traceback (most recent call last): File

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, what is your opinion of running 'from test import autotest' in a standard python shell window, opened from an icon, as opposed to IDLE's shell? > many tests fail just because of IDLE. We cannot know what to blame on IDLE without a

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue25588. Currently running tests from IDLE doesn't work, but it worked in the past and maybe we can make it working again. -- nosy: +serhiy.storchaka ___ Python tracker

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Closing this issue, I opened https://github.com/python/devguide/issues/280 so that Dev Guide can be updated. Thanks! -- nosy: +Mariatta resolution: -> not a bug stage: -> resolved status: open -> closed

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Denis Osipov
Denis Osipov added the comment: Got it. Thank you for your help. -- ___ Python tracker ___

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: > "If you don’t have easy access to a command line, you can run the test suite > from a Python or IDLE shell: The devguide is wrong. You should not run the Python test suite in IDLE. It doesn't work and many tests fail just because

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread STINNER Victor
Change by STINNER Victor : -- components: +Tests -Documentation title: Possible error in devguide part about tests -> regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE ___ Python