Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_embed.InitConfigTests fail on AIX #78760

Closed
aixtools opened this issue Sep 4, 2018 · 4 comments
Closed

test_embed.InitConfigTests fail on AIX #78760

aixtools opened this issue Sep 4, 2018 · 4 comments
Labels
3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@aixtools
Copy link
Contributor

aixtools commented Sep 4, 2018

BPO 34579
Nosy @vstinner, @ericsnowcurrently, @aixtools
PRs
  • bpo-34579: Modify test_embed DEFAULT_CONFIG for AIX #9063
  • 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 2019-05-15.02:32:22.474>
    created_at = <Date 2018-09-04.15:06:52.079>
    labels = ['3.8', 'type-bug', 'tests']
    title = 'test_embed.InitConfigTests fail on AIX'
    updated_at = <Date 2019-05-15.02:32:22.474>
    user = 'https://github.com/aixtools'

    bugs.python.org fields:

    activity = <Date 2019-05-15.02:32:22.474>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-05-15.02:32:22.474>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2018-09-04.15:06:52.079>
    creator = 'Michael.Felt'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34579
    keywords = ['patch']
    message_count = 4.0
    messages = ['324590', '325082', '325084', '325429']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'eric.snow', 'Michael.Felt']
    pr_nums = ['9063']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34579'
    versions = ['Python 3.8']

    @aixtools
    Copy link
    Contributor Author

    aixtools commented Sep 4, 2018

    test_init_default_config (test.test_embed.InitConfigTests) ... FAIL
    test_init_dev_mode (test.test_embed.InitConfigTests) ... FAIL
    test_init_env (test.test_embed.InitConfigTests) ... FAIL
    test_init_from_config (test.test_embed.InitConfigTests) ... ok
    test_init_global_config (test.test_embed.InitConfigTests) ... FAIL
    test_init_isolated (test.test_embed.InitConfigTests) ... FAIL

    This seems to be caused because the dump_config() output is not
    '(null)' for the keys allocator, program, and pycache_prefix.

    When these are 'expected' to be '' (rather than '(null)', all tests pass.

    See PR

    @aixtools aixtools added tests Tests in the Lib/test dir 3.8 only security fixes type-bug An unexpected behavior, bug, or error labels Sep 4, 2018
    @vstinner
    Copy link
    Member

    What is the output of "./Programs/_testembed init_default_config"?

    @vstinner
    Copy link
    Member

    Hum, you should run "env -i ./Programs/_testembed init_default_config" to run the program in an empty environment. test_embed modifies os.environ to remove all PYTHON* env vars.

    @vstinner
    Copy link
    Member

    New changeset d206731 by Victor Stinner (Michael Felt) in branch 'master':
    bpo-34579: Fix test_embed DEFAULT_CON AIX (GH-9063)
    d206731

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants