aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-07-04 12:50:37 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-07-04 12:50:37 -0700
commit1efbaae03148633014f6d62ed2b3132c5ec5d6c0 (patch)
treeff2ab024afc0249d077db6e3b10db9269895a42a /tests/runner.py
parent6335ad37c27d21780e3b4c25698db1282415a4d0 (diff)
pass the eliminator the filename to avoid OS-specific issues with reading from stdin using node
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 9abbd7d9..19ef538b 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -7091,9 +7091,8 @@ f.close()
self.assertContained('prepre\npre-run\nhello from main\n', run_js(os.path.join(self.get_dir(), 'a.out.js')))
def test_eliminator(self):
- input = open(path_from_root('tools', 'eliminator', 'eliminator-test.js')).read()
expected = open(path_from_root('tools', 'eliminator', 'eliminator-test-output.js')).read()
- output = Popen([NODE_JS, COFFEESCRIPT, VARIABLE_ELIMINATOR], stdin=PIPE, stdout=PIPE).communicate(input)[0]
+ output = Popen([NODE_JS, COFFEESCRIPT, VARIABLE_ELIMINATOR, path_from_root('tools', 'eliminator', 'eliminator-test.js')], stdout=PIPE).communicate()[0]
self.assertIdentical(expected, output)
def test_fix_closure(self):