-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
gh-104879: Fix TypeAliasType.__module__ in exec() #104881
Conversation
JelleZijlstra
commented
May 24, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: TypeAliasType.__module__ can segfault #104879
@@ -373,6 +373,20 @@ def test_basic_plain(self): | |||
self.assertIs(T.__covariant__, False) | |||
self.assertIs(T.__contravariant__, False) | |||
self.assertIs(T.__infer_variance__, False) | |||
self.assertEqual(T.__module__, __name__) | |||
|
|||
def test_basic_with_exec(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests already passed, but adding them here for completeness
🤖 New build scheduled with the buildbot fleet by @JelleZijlstra for commit a6e5d5e 🤖 If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
Thanks @JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
) (cherry picked from commit fe77a99) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
GH-104890 is a backport of this pull request to the 3.12 branch. |