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

Minor fix to output_test.py #2395

Merged
merged 1 commit into from
Mar 16, 2024
Merged

Conversation

digit-google
Copy link
Contributor

Do not use os.chdir() to change the current directory inside the run() function, as doing this prevents the temporary directory from being removed.

Moreover, this breaks pytest invocations when adding new regression test scripts in this directory (as done in other forks).

  • Use dict.pop() to undefine environment variables in default_env dictionary.

Do not use os.chdir() to change the current directory inside
the run() function, as doing this prevents the temporary directory
from being removed.

Moreover, this breaks pytest invocations when adding new regression
test scripts in this directory (as done in other forks).

+ Use dict.pop() to undefine environment variables in `default_env`
  dictionary.
@jhasse jhasse added this to the 1.12.0 milestone Mar 15, 2024
@jhasse
Copy link
Collaborator

jhasse commented Mar 16, 2024

Thanks! TIL

@jhasse jhasse merged commit 0c1e006 into ninja-build:master Mar 16, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants