You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
directory. Move out lots of stuff from __init__ to their own files. Add file loading tests. Document AST handling a tad more complete.
9 lines
285 B
Python
9 lines
285 B
Python
from uncompyle6.load import load_file, check_object_path, load_module
|
|
|
|
def test_load():
|
|
"""Basic test of load_file, check_object_path and load_module"""
|
|
co = load_file(__file__)
|
|
obj_path = check_object_path(__file__)
|
|
co2 = load_module(obj_path)
|
|
assert co == co2[2]
|