Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
Cryptic error message about ENV CHANGED #132581
Copy link
Copy link
Open
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
See for example #132535.
When there are leaked resources that emit a resource warning in destructor, and the test was ran with the
-Werroroption, the warnings are converted to unhandled exceptions, and the error report will contain: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.
Linked PRs