Commit 20232797 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Don't create .pyc files for the main script

I don't know what the reason is, but it's tripping up cffi's test suite.
parent 7e53e4e9
......@@ -509,7 +509,7 @@ static int main(int argc, char** argv) noexcept {
free(real_path);
try {
AST_Module* ast = caching_parse_file(fn, /* future_flags = */ 0);
AST_Module* ast = parse_file(fn, /* future_flags = */ 0);
compileAndRunModule(ast, main_module);
rtncode = 0;
} catch (ExcInfo e) {
......
import os.path
try:
assert not os.path.exists(__file__ + 'c')
except AssertionError:
os.unlink(__file__ + 'c')
raise
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment