aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-19 13:37:26 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-19 13:37:26 -0800
commit2f082bce5f10f698aa07f7c14de6b3da7f265bf1 (patch)
treeeae8b19e35abc1eb1edce1644db3e073254aac17 /tests/runner.py
parent4f5e5f0b26c4e49b2caca8a750df305ab233990f (diff)
test runner fixes
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index ced640df..d02ce36b 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -42,6 +42,7 @@ class RunnerCore(unittest.TestCase):
if not os.path.exists(dirname):
os.makedirs(dirname)
self.working_dir = dirname
+ os.chdir(dirname)
def tearDown(self):
if self.save_JS:
@@ -4456,7 +4457,7 @@ TT = %s
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([COFFEESCRIPT, VARIABLE_ELIMINATOR], stdin=PIPE, stdout=PIPE, stderr=PIPE).communicate(input)[0]
+ output = Popen([COFFEESCRIPT, VARIABLE_ELIMINATOR], stdin=PIPE, stdout=PIPE).communicate(input)[0]
self.assertIdentical(expected, output)
else: