From c8a797d120a1413d993281c98268c1c2ee9f3f94 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 16 Aug 2019 13:31:52 -0700 Subject: 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. --- test/unit/test_parsing_error.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/unit/test_parsing_error.py') 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) -- cgit v1.2.3