aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-21 15:26:21 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-21 15:26:21 -0800
commite7ae8fe97f04d5d550416c5937bb95d0978aadee (patch)
tree3e9200beb7d0b19592065b588a49ec2ac50fe003
parent6b0f2fa2123dbd24890a10ffe4880fa0b018e4d4 (diff)
fix test_files_m: do not put a variable called 'data' in the global scope
-rw-r--r--tests/test_core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index b96cbc36..c4bfcfa3 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -3946,9 +3946,9 @@ def process(filename):
post = '''
def process(filename):
src = \'\'\'
- var data = [10, 20, 40, 30];
var Module = {
- stdin: function() { return data.pop() || null },
+ data: [10, 20, 40, 30],
+ stdin: function() { return Module.data.pop() || null },
stdout: function(x) { Module.print('got: ' + x) }
};
\'\'\' + open(filename, 'r').read()