summaryrefslogtreecommitdiff
path: root/test/unit/test_parsing_error.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_parsing_error.py')
-rw-r--r--test/unit/test_parsing_error.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/unit/test_parsing_error.py b/test/unit/test_parsing_error.py
index fde77c6c2..b9bab3d76 100644
--- a/test/unit/test_parsing_error.py
+++ b/test/unit/test_parsing_error.py
@@ -4,15 +4,15 @@ import os
class ParsingErrorTest(BinaryenTestCase):
- def test_parsing_error_msg(self):
- module = '''
- (module
- (func $foo
- (abc)
- )
- )
- '''
- p = run_process(WASM_OPT + ['--print', '-o', os.devnull], input=module,
- check=False, capture_output=True)
- self.assertNotEqual(p.returncode, 0)
- self.assertIn("parse exception: abc (at 4:6)", p.stderr)
+ def test_parsing_error_msg(self):
+ module = '''
+(module
+ (func $foo
+ (abc)
+ )
+)
+'''
+ p = run_process(WASM_OPT + ['--print', '-o', os.devnull], input=module,
+ check=False, capture_output=True)
+ self.assertNotEqual(p.returncode, 0)
+ self.assertIn("parse exception: abc (at 4:4)", p.stderr)