classification
Title: PEP 511: Add test.support.optim_args_from_interpreter_flags()
Type: Stage:
Components: Tests Versions: Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, python-dev, vstinner
Priority: normal Keywords: patch

Created on 2016-01-13 16:32 by vstinner, last changed 2016-01-18 11:16 by vstinner. This issue is now closed.

Files
File name Uploaded Description Edit
optim_args.patch vstinner, 2016-01-13 16:32 review
optim_args-2.patch vstinner, 2016-01-13 16:44 review
distutils.patch vstinner, 2016-01-18 09:01 review
Messages (6)
msg258152 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-01-13 16:32
Attached patch adds a new optim_args_from_interpreter_flags() function to the test.support module, similar to the existing args_from_interpreter_flags() function. The function creates command line arguments related to optimization. The function is required by test_compileall.py and test_inspect.py.

The patch enables test_details() test of test_inspect when -O or -OO command line options are used.
msg258153 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-01-13 16:34
Do you want that the change should be applied to Python 3.5 too?
msg258155 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-01-13 16:41
Note: running directly "./python Lib/test/test_compileall.py" fails because of the issue #26101.
msg258156 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-01-13 16:44
Patch version 2: I forgot Lib/test/test_cmd_line_script.py.
msg258507 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-01-18 09:01
Lib/distutils/util.py must also be modified: see attached distutils.patch.
msg258516 - (view) Author: Roundup Robot (python-dev) Date: 2016-01-18 11:16
New changeset ac6d33317eda by Victor Stinner in branch 'default':
subprocess._optim_args_from_interpreter_flags()
https://hg.python.org/cpython/rev/ac6d33317eda
History
Date User Action Args
2016-01-18 11:16:14vstinnersetstatus: open -> closed
resolution: fixed
2016-01-18 11:16:02python-devsetnosy: + python-dev
messages: + msg258516
2016-01-18 09:01:31vstinnersettitle: Add test.support.optim_args_from_interpreter_flags() -> PEP 511: Add test.support.optim_args_from_interpreter_flags()
2016-01-18 09:01:24vstinnersetfiles: + distutils.patch

messages: + msg258507
2016-01-13 16:44:33vstinnersetfiles: + optim_args-2.patch

messages: + msg258156
2016-01-13 16:41:43vstinnersetnosy: + brett.cannon
messages: + msg258155
2016-01-13 16:34:06vstinnersetmessages: + msg258153
2016-01-13 16:32:36vstinnersetcomponents: + Tests
2016-01-13 16:32:31vstinnercreate