diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/test_asyncify.py | 3 | ||||
-rw-r--r-- | test/unit/utils.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/test_asyncify.py b/test/unit/test_asyncify.py index 1010c07c4..7510c9492 100644 --- a/test/unit/test_asyncify.py +++ b/test/unit/test_asyncify.py @@ -14,7 +14,8 @@ class AsyncifyTest(utils.BinaryenTestCase): shared.run_process(shared.WASM_OPT + args + [self.input_path('asyncify-coroutine.wat'), '--asyncify', '-o', 'b.wasm']) shared.run_process(shared.WASM_OPT + args + [self.input_path('asyncify-stackOverflow.wat'), '--asyncify', '-o', 'c.wasm']) print(' file size: %d' % os.path.getsize('a.wasm')) - shared.run_process([shared.NODEJS, self.input_path('asyncify.js')]) + if shared.NODEJS: + shared.run_process([shared.NODEJS, self.input_path('asyncify.js')]) test(['-g']) test([]) diff --git a/test/unit/utils.py b/test/unit/utils.py index d91141e36..b75ed311c 100644 --- a/test/unit/utils.py +++ b/test/unit/utils.py @@ -34,7 +34,7 @@ class BinaryenTestCase(unittest.TestCase): p = shared.run_process(cmd, check=False, capture_output=True) self.assertEqual(p.returncode, 0) self.assertEqual(p.stderr, '') - self.assertEqual(p.stdout.split('\n')[:-1], + self.assertEqual(p.stdout.splitlines(), ['--enable-' + f for f in features]) # similar to assertEqual, but while ignoring line ending differences such |