mirror of
https://github.com/pocketpy/pocketpy
synced 2026-02-10 09:30:21 +00:00
Update 922_py_compile.py
This commit is contained in:
parent
646c6e30da
commit
984c723872
@ -4,7 +4,12 @@ except ImportError:
|
|||||||
print('os is not enabled, skipping test...')
|
print('os is not enabled, skipping test...')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
assert os.system('./main --compile python/heapq.py heapq1.pyc') == 0
|
import sys
|
||||||
|
if sys.platform == 'win32':
|
||||||
|
exe_name = 'main.exe'
|
||||||
|
else:
|
||||||
|
exe_name = './main'
|
||||||
|
assert os.system(f'{exe_name} --compile python/heapq.py heapq1.pyc') == 0
|
||||||
assert os.path.exists('heapq1.pyc')
|
assert os.path.exists('heapq1.pyc')
|
||||||
|
|
||||||
import heapq1
|
import heapq1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user