You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there are leaked resources that emit a resource warning in destructor, and the test was ran with the -Werror option, the warnings are converted to unhandled exceptions, and the error report will contain:
...
== Tests result: ENV CHANGED then ENV CHANGED ==
...
1 test altered the execution environment (env changed):
test_timeout
...
Total test files: run=467/470 (filtered) env_changed=1 skipped=16 resource_denied=4 rerun=1
Result: ENV CHANGED then ENV CHANGED
...
These "ENV CHANGED then ENV CHANGED" look pretty cryptic for regular user. And "altered the execution environment (env changed)" is not particularly useful at all. Even if "env changed" is repeated in three places, it does not add clarity.
It would be nice to decipher it and provide more details. For every test explain what "environment" was altered in more human words -- leaked files, unhandled exceptions, etc.
Hi, I’m interested in contributing to this issue. It currently appears to be open and unassigned, with no active pull request. May I take it up and start working on it?
Activity
hasrat17 commentedon Jun 12, 2025
Hi, I’m interested in contributing to this issue. It currently appears to be open and unassigned, with no active pull request. May I take it up and start working on it?
Merge branch 'main' into pythongh-132581-env-changed-reasons
gh-132581: Report why the execution environment was altered (GH-155294)
[3.13] gh-132581: Report why the execution environment was altered (G…
[3.14] gh-132581: Report why the execution environment was altered (G…
[3.15] gh-132581: Report why the execution environment was altered (G…