From cbcca4cf42690514c04fce958675dcc05c1e86e3 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 31 Jul 2019 17:41:06 -0700 Subject: 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 --- test/unit/test_asyncify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/test_asyncify.py') 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): -- cgit v1.2.3