summaryrefslogtreecommitdiff
path: root/test/unit/test_parsing_error.py
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-08-16 13:31:52 -0700
committerGuanzhong Chen <gzchen@google.com>2019-08-16 13:31:52 -0700
commitc8a797d120a1413d993281c98268c1c2ee9f3f94 (patch)
tree30b0d00b8af103e1b8a751f292f0241a02af9a79 /test/unit/test_parsing_error.py
parentee0564088c7f89814bf951cc5936aa096538e38f (diff)
downloadbinaryen-c8a797d120a1413d993281c98268c1c2ee9f3f94.tar.gz
binaryen-c8a797d120a1413d993281c98268c1c2ee9f3f94.tar.bz2
binaryen-c8a797d120a1413d993281c98268c1c2ee9f3f94.zip
Switch python indentation from 2-space to 4-space (#2299)
pep8 specifies 4 space indentation. The use of 2 spaces is, I believe a historical anomaly where certain large organizations such as google chose 2 over 4 and have yet to make the switch. Since there isn't too much code in binaryen today it seems reasonable to make the switch.
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)