Skip to content

Commit 0079ca3

Browse files
framework: enforce perfect code round trip
1 parent dbfa8ac commit 0079ca3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/frameworks/sitecustomize.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def after_import(self, module):
2525
assert new.co_stacksize == function.__code__.co_stacksize
2626
if sys.version_info >= (3, 11):
2727
assert new.co_exceptiontable == function.__code__.co_exceptiontable
28+
# Enforce perfect code round tripping
29+
assert new.co_code == function.__code__.co_code
2830
except Exception:
2931
print("Failed to recompile %s" % fname)
3032
dis.dis(function)

0 commit comments

Comments
 (0)