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.

classification
Title: Run Python child processes in isolated mode in the test suite?
Type: Stage: resolved
Components: Tests Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, christian.heimes, python-dev, vstinner
Priority: normal Keywords: patch

Created on 2013-08-16 13:40 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_isolated.patch vstinner, 2013-08-16 13:40 review
Messages (4)
msg195331 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-08-16 13:40
Python 3.4 has a new command line option to run Python in isolated mode: -I.

IMO it would be nice to use this option to make the test suite more independant of the user configuration and the environment.

Attached patch modifies the test.script_helper module to use the new -I option.

Some tests rely on the current directory added to sys.path, so I had to add a python_isolated=False option to script_helper for these tests.
msg195344 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-08-16 15:57
Haven't looked at the patch but the motivation behind it sounds good to me.
msg199426 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-10-10 22:47
@Crys: ping!
msg199559 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-10-12 12:51
New changeset 72b2e7b74307 by Victor Stinner in branch 'default':
Close #18754: Run Python child processes in isolated more in the test suite.
http://hg.python.org/cpython/rev/72b2e7b74307
History
Date User Action Args
2022-04-11 14:57:49adminsetgithub: 62954
2013-10-12 12:51:47python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg199559

resolution: fixed
stage: resolved
2013-10-10 22:47:17vstinnersetmessages: + msg199426
2013-08-16 15:57:55brett.cannonsetnosy: + brett.cannon
messages: + msg195344
2013-08-16 13:40:04vstinnercreate