test_ok1/testing/root/check_compile.py

14 lines
232 B
Python

import sys
def main(fn):
print("Testing %s" % (fn,))
fp = open(fn, "rb")
try:
source = fp.read()
finally:
fp.close()
compile(source, fn, "exec")
if __name__ == "__main__":
main(sys.argv[1])