tests: Fix indentation issues

This commit is contained in:
Mathieu Couette
2020-10-08 17:29:06 -04:00
committed by Adrien Vergé
parent 9ee8c27ac9
commit 11b1f1c14e

View File

@@ -47,8 +47,7 @@ class ModuleTestCase(unittest.TestCase):
subprocess.check_output([PYTHON, '-m', 'yamllint'],
stderr=subprocess.STDOUT)
self.assertEqual(ctx.exception.returncode, 2)
self.assertRegex(ctx.exception.output.decode(),
r'^usage: yamllint')
self.assertRegex(ctx.exception.output.decode(), r'^usage: yamllint')
def test_run_module_on_bad_dir(self):
with self.assertRaises(subprocess.CalledProcessError) as ctx: