summaryrefslogtreecommitdiff
path: root/test/unit/test_asyncify.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-07-31 17:41:06 -0700
committerGitHub <noreply@github.com>2019-07-31 17:41:06 -0700
commitcbcca4cf42690514c04fce958675dcc05c1e86e3 (patch)
treed556bc2352f671eb54d6ec46c37d6a2f7392ac3c /test/unit/test_asyncify.py
parent692f4666fd116fb7827b53348978f29bba253d47 (diff)
downloadbinaryen-cbcca4cf42690514c04fce958675dcc05c1e86e3.tar.gz
binaryen-cbcca4cf42690514c04fce958675dcc05c1e86e3.tar.bz2
binaryen-cbcca4cf42690514c04fce958675dcc05c1e86e3.zip
Python3-ify check.py and auto_update_tests.py (#2270)
I fixed flatten.bin.txt which seems to have just had some corrupted data, and I removed some fancy unicode from the spec comments tests, which I'm not sure it's important enough to figure out how to fix. Fixes #1691
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):