mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
GH-95150: Use position and exception tables for code hashing and equality (GH-95509)
(cherry picked from commit c7e5bbaee8
)
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
This commit is contained in:
parent
76d83b1dfe
commit
7baca3c05e
5 changed files with 68 additions and 5 deletions
|
@ -2012,7 +2012,8 @@ def fib(n):
|
|||
a, b = 0, 1
|
||||
"""
|
||||
try:
|
||||
self.assertEqual(compile(s1, '<string>', 'exec'), compile(s2, '<string>', 'exec'))
|
||||
compile(s1, '<string>', 'exec')
|
||||
compile(s2, '<string>', 'exec')
|
||||
except SyntaxError:
|
||||
self.fail("Indented statement over multiple lines is valid")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue