From e7ae8fe97f04d5d550416c5937bb95d0978aadee Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 21 Feb 2014 15:26:21 -0800 Subject: fix test_files_m: do not put a variable called 'data' in the global scope --- tests/test_core.py | 4 ++-- 1 file 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() -- cgit v1.2.3-18-g5258