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.

Title: test_embed.InitConfigTests fail on AIX
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.8
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Michael.Felt, eric.snow, vstinner
Priority: normal Keywords: patch

Created on 2018-09-04 15:06 by Michael.Felt, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 9063 merged Michael.Felt, 2018-09-04 15:15
Messages (4)
msg324590 - (view) Author: Michael Felt (Michael.Felt) * Date: 2018-09-04 15:06
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
msg325082 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-09-11 22:28
What is the output of "./Programs/_testembed init_default_config"?
msg325084 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-09-11 22:29
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.
msg325429 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-09-15 09:28
New changeset d2067318c79f66cfdabc53333715a02d5fa5ff81 by Victor Stinner (Michael Felt) in branch 'master':
bpo-34579: Fix test_embed DEFAULT_CON AIX (GH-9063)
Date User Action Args
2022-04-11 14:59:05adminsetgithub: 78760
2019-05-15 02:32:22vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-09-15 09:28:35vstinnersetmessages: + msg325429
2018-09-11 22:29:18vstinnersetmessages: + msg325084
2018-09-11 22:28:36vstinnersetmessages: + msg325082
2018-09-11 14:53:47eric.snowsetnosy: + vstinner, eric.snow
2018-09-11 05:45:07Michael.Feltsettype: behavior
2018-09-04 15:15:14Michael.Feltsetkeywords: + patch
stage: patch review
pull_requests: + pull_request8523
2018-09-04 15:10:31Michael.Feltsetcomponents: + Tests
versions: + Python 3.8
2018-09-04 15:06:52Michael.Feltcreate