You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
fragment test update for expanded offsets
This commit is contained in:
@@ -33,7 +33,7 @@ def get_parsed_for_fn(fn):
|
|||||||
return deparse(PYTHON_VERSION, code)
|
return deparse(PYTHON_VERSION, code)
|
||||||
|
|
||||||
def check_expect(expect, parsed):
|
def check_expect(expect, parsed):
|
||||||
debug = True
|
debug = False
|
||||||
i = 2
|
i = 2
|
||||||
max_expect = len(expect)
|
max_expect = len(expect)
|
||||||
for name, offset in sorted(parsed.offsets.keys()):
|
for name, offset in sorted(parsed.offsets.keys()):
|
||||||
@@ -168,7 +168,7 @@ return (x, y)
|
|||||||
-------------
|
-------------
|
||||||
""".split("\n")
|
""".split("\n")
|
||||||
check_expect(expect, parsed)
|
check_expect(expect, parsed)
|
||||||
# ########################################################
|
########################################################
|
||||||
# # try
|
# # try
|
||||||
|
|
||||||
# expect = """
|
# expect = """
|
||||||
@@ -299,6 +299,12 @@ return
|
|||||||
Contained in...
|
Contained in...
|
||||||
i + 1
|
i + 1
|
||||||
-----
|
-----
|
||||||
|
31
|
||||||
|
return
|
||||||
|
------
|
||||||
|
Contained in...
|
||||||
|
for i in range(2): ...
|
||||||
|
------------------ ...
|
||||||
34
|
34
|
||||||
return
|
return
|
||||||
------
|
------
|
||||||
|
Reference in New Issue
Block a user