summaryrefslogtreecommitdiff
path: root/test/unit/test_warnings.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_warnings.py')
-rw-r--r--test/unit/test_warnings.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/test_warnings.py b/test/unit/test_warnings.py
index 9fb43a12b..0717ae823 100644
--- a/test/unit/test_warnings.py
+++ b/test/unit/test_warnings.py
@@ -1,18 +1,18 @@
import subprocess
-from scripts.test.shared import WASM_OPT, run_process
-from .utils import BinaryenTestCase
+from scripts.test import shared
+from . import utils
-class WarningsText(BinaryenTestCase):
+class WarningsText(utils.BinaryenTestCase):
def test_warn_on_no_passes(self):
- err = run_process(WASM_OPT + [self.input_path('asyncify-pure.wast'), '-o', 'a.wasm'], stderr=subprocess.PIPE).stderr
+ err = shared.run_process(shared.WASM_OPT + [self.input_path('asyncify-pure.wast'), '-o', 'a.wasm'], stderr=subprocess.PIPE).stderr
self.assertIn('warning: no passes specified, not doing any work', err)
def test_warn_on_no_output(self):
- err = run_process(WASM_OPT + [self.input_path('asyncify-pure.wast'), '-O1'], stderr=subprocess.PIPE).stderr
+ err = shared.run_process(shared.WASM_OPT + [self.input_path('asyncify-pure.wast'), '-O1'], stderr=subprocess.PIPE).stderr
self.assertIn('warning: no output file specified, not emitting output', err)
def test_quiet_suppresses_warnings(self):
- err = run_process(WASM_OPT + [self.input_path('asyncify-pure.wast'), '-q'], stderr=subprocess.PIPE).stderr
+ err = shared.run_process(shared.WASM_OPT + [self.input_path('asyncify-pure.wast'), '-q'], stderr=subprocess.PIPE).stderr
self.assertNotIn('warning', err)