[3.14] gh-138349: Fix crash when combining module-level annotation and listcomp (#138363) (#138749)

* gh-138349: Fix crash when combining module-level annotation and listcomp (#138363)

(cherry picked from commit 7a6fd4a45d)

---------

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Victor Stinner 2025-09-11 07:43:57 +02:00 committed by GitHub
parent 38cd031111
commit 3643a26a01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 48 additions and 6 deletions

View file

@ -635,7 +635,7 @@ def test_magic_number(self):
# stakeholders such as OS package maintainers must be notified
# in advance. Such exceptional releases will then require an
# adjustment to this test case.
EXPECTED_MAGIC_NUMBER = 3626
EXPECTED_MAGIC_NUMBER = 3627
actual = int.from_bytes(importlib.util.MAGIC_NUMBER[:2], 'little')
msg = (