Skip to content

gh-126018: Avoid aborting due to unnecessary assert in sys.audit#126020

Merged
JelleZijlstra merged 7 commits intopython:mainfrom
devdanzin:remove_sysaudit_assert
Oct 27, 2024
Merged

gh-126018: Avoid aborting due to unnecessary assert in sys.audit#126020
JelleZijlstra merged 7 commits intopython:mainfrom
devdanzin:remove_sysaudit_assert

Conversation

@devdanzin
Copy link
Member

@devdanzin devdanzin commented Oct 26, 2024

This PR removes an assert in sysmodule.c that caused the interpreter to abort when sys.audit received a non-string as first argument.

Without this assert, the code that runs the hooks will raise an exception instead.

Loading
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.

5 participants