mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-02-17 11:50:57 +00:00
fragment test update for expanded offsets
This commit is contained in:
parent
694e1edd00
commit
0adf70b4d9
@ -33,7 +33,7 @@ def get_parsed_for_fn(fn):
|
||||
return deparse(PYTHON_VERSION, code)
|
||||
|
||||
def check_expect(expect, parsed):
|
||||
debug = True
|
||||
debug = False
|
||||
i = 2
|
||||
max_expect = len(expect)
|
||||
for name, offset in sorted(parsed.offsets.keys()):
|
||||
@ -168,7 +168,7 @@ return (x, y)
|
||||
-------------
|
||||
""".split("\n")
|
||||
check_expect(expect, parsed)
|
||||
# ########################################################
|
||||
########################################################
|
||||
# # try
|
||||
|
||||
# expect = """
|
||||
@ -299,6 +299,12 @@ return
|
||||
Contained in...
|
||||
i + 1
|
||||
-----
|
||||
31
|
||||
return
|
||||
------
|
||||
Contained in...
|
||||
for i in range(2): ...
|
||||
------------------ ...
|
||||
34
|
||||
return
|
||||
------
|
||||
|
Loading…
x
Reference in New Issue
Block a user