aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2012-11-09 19:16:34 +0200
committerJukka Jylänki <jujjyl@gmail.com>2012-11-09 19:16:34 +0200
commit728a9456ef98805c25b710dc5296a04167b9c9ad (patch)
tree747cdf868f1a4044936924b8ad83d560a6a10f62 /tests/runner.py
parent99965bcd397b3bf5675e40b4d60a52900b5bee16 (diff)
Convert crlf to lf in other.test_js_optimizer test to pass the test on Windows.
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 778da174..d9989c36 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -8056,7 +8056,7 @@ f.close()
['eliminateMemSafe']),
]:
output = Popen([NODE_JS, path_from_root('tools', 'js-optimizer.js'), input] + passes, stdin=PIPE, stdout=PIPE).communicate()[0]
- self.assertIdentical(expected, output.replace('\n\n', '\n'))
+ self.assertIdentical(expected, output.replace('\r\n', '\n').replace('\n\n', '\n'))
def test_m_mm(self):
open(os.path.join(self.get_dir(), 'foo.c'), 'w').write('''#include <emscripten.h>''')