Skip to content

PEP 511: Add test.support.optim_args_from_interpreter_flags() #70288

Closed

Description

@vstinner
BPO 26100
Nosy @brettcannon, @vstinner
Files
  • optim_args.patch
  • optim_args-2.patch
  • distutils.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2016-01-18.11:16:14.078>
    created_at = <Date 2016-01-13.16:32:31.898>
    labels = ['tests']
    title = 'PEP 511: Add test.support.optim_args_from_interpreter_flags()'
    updated_at = <Date 2016-01-18.11:16:14.077>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2016-01-18.11:16:14.077>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-01-18.11:16:14.078>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2016-01-13.16:32:31.898>
    creator = 'vstinner'
    dependencies = []
    files = ['41606', '41608', '41642']
    hgrepos = []
    issue_num = 26100
    keywords = ['patch']
    message_count = 6.0
    messages = ['258152', '258153', '258155', '258156', '258507', '258516']
    nosy_count = 3.0
    nosy_names = ['brett.cannon', 'vstinner', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue26100'
    versions = ['Python 3.6']

    Activity

    1. vstinner commented on Jan 13, 2016

      @vstinner
      MemberAuthor

      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.

    2. vstinner commented on Jan 13, 2016

      @vstinner
      MemberAuthor

      Do you want that the change should be applied to Python 3.5 too?

    3. vstinner commented on Jan 13, 2016

      @vstinner
      MemberAuthor

      Note: running directly "./python Lib/test/test_compileall.py" fails because of the issue bpo-26101.

    4. vstinner commented on Jan 13, 2016

      @vstinner
      MemberAuthor

      Patch version 2: I forgot Lib/test/test_cmd_line_script.py.

    5. vstinner commented on Jan 18, 2016

      @vstinner
      MemberAuthor

      Lib/distutils/util.py must also be modified: see attached distutils.patch.

    6. 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
    7. python-dev commented on Jan 18, 2016

      python-devmannequin
      Mannequin

      New changeset ac6d33317eda by Victor Stinner in branch 'default':
      subprocess._optim_args_from_interpreter_flags()
      https://hg.python.org/cpython/rev/ac6d33317eda

    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      testsTests in the Lib/test dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions