[issue24137] Force not using _default_root in IDLE
Terry J. Reedy
report at bugs.python.org
Tue Jun 26 22:17:09 EDT 2018
Terry J. Reedy <tjreedy at udel.edu> added the comment:
The net effect of this issue:
pyshell.main calls NoDefaultRoot() when running normally, when using a subprocess and testing is not set. It does not call it when in -n mode since that would affect users.
idle_test.htest calls NoDefaultRoot() unconditionally. pyshell.main is not called.
test.test_idle sets testing to avoid the call when run by test.regrtest, to avoid failing the latter's changed-environment check. But it does call NoDefaultRoot when run as __main__ and the tests are run by unittest.main.
Known dependencies on a default root have been removed. It is unlikely that any are left.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24137>
_______________________________________
More information about the Python-bugs-list
mailing list