Skip to content

test_launcher fails if a test py.ini is left behind #122941

Open
@encukou

Description

PreservePyIni in test_launcher.py writes a temporary file to %LOCALAPPDATA%\py.ini, and restores/deletes it when done.
If the restore fails (or, presumably, sometimes when multiple tests run at the same time), the test config is left and subsequent tests will fail.

I reproduced locally. Here's a buildbot run showing the same symptom: https://buildbot.python.org/#/builders/1295/builds/174/steps/4/logs/stdio

Would it make sense to use a file in the test directory, and add a PYLAUNCHER_CONFIG_FILE env variable with the filename?
Or should this use some system-wide lock?

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions