You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PEP 511: Add test.support.optim_args_from_interpreter_flags() #70288
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.
changed the title [-]Add test.support.optim_args_from_interpreter_flags()[/-][+]PEP 511: Add test.support.optim_args_from_interpreter_flags()[/+]on Jan 18, 2016
Activity
vstinner commentedon Jan 13, 2016
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.
vstinner commentedon Jan 13, 2016
Do you want that the change should be applied to Python 3.5 too?
vstinner commentedon Jan 13, 2016
Note: running directly "./python Lib/test/test_compileall.py" fails because of the issue bpo-26101.
vstinner commentedon Jan 13, 2016
Patch version 2: I forgot Lib/test/test_cmd_line_script.py.
vstinner commentedon Jan 18, 2016
Lib/distutils/util.py must also be modified: see attached distutils.patch.
[-]Add test.support.optim_args_from_interpreter_flags()[/-][+]PEP 511: Add test.support.optim_args_from_interpreter_flags()[/+]python-dev commentedon Jan 18, 2016
New changeset ac6d33317eda by Victor Stinner in branch 'default':
subprocess._optim_args_from_interpreter_flags()
https://hg.python.org/cpython/rev/ac6d33317eda