aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 77f36cf5..1948ab59 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -9528,7 +9528,10 @@ def process(filename):
c2.virtualFunc2();
Module.print('*ok*');
'''
- src = open(filename, 'a')
+ code = open(filename).read()
+ src = open(filename, 'w')
+ src.write('var Module = {};\n') # name Module
+ src.write(code)
src.write(script_src_2 + '\n')
src.close()