summaryrefslogtreecommitdiff
path: root/test/unit/test_asyncify.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_asyncify.py')
-rw-r--r--test/unit/test_asyncify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/test_asyncify.py b/test/unit/test_asyncify.py
index 40ee160d2..3856c262d 100644
--- a/test/unit/test_asyncify.py
+++ b/test/unit/test_asyncify.py
@@ -2,7 +2,7 @@ import os
import subprocess
from scripts.test.shared import WASM_OPT, WASM_DIS, WASM_SHELL, NODEJS, run_process
-from utils import BinaryenTestCase
+from .utils import BinaryenTestCase
class AsyncifyTest(BinaryenTestCase):
@@ -26,7 +26,7 @@ class AsyncifyTest(BinaryenTestCase):
run_process(WASM_OPT + [self.input_path('asyncify-pure.wast'), '--asyncify', '-o', 'a.wasm'])
run_process(WASM_DIS + ['a.wasm', '-o', 'a.wast'])
output = run_process(WASM_SHELL + ['a.wast'], capture_output=True).stdout
- with open(self.input_path('asyncify-pure.txt')) as f:
+ with open(self.input_path('asyncify-pure.txt'), 'r') as f:
self.assertEqual(f.read(), output)
def test_asyncify_list_bad(self):