From b185618b7c7382873b5ad1474d47021d2f0836b5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 26 2018 19:36:58 +0000 Subject: Make the test_style a little more verbose for easier debugging Signed-off-by: Pierre-Yves Chibon --- diff --git a/tests/test_style.py b/tests/test_style.py index aed3c11..ea10054 100644 --- a/tests/test_style.py +++ b/tests/test_style.py @@ -32,8 +32,10 @@ class TestStyle(unittest.TestCase): """ # We ignore E712, which disallows non-identity comparisons with True and False flake8_command = [sys.executable, '-m', 'flake8', '--ignore=E712,W503', REPO_PATH] + proc = subprocess.Popen(flake8_command, stdout=subprocess.PIPE) + print(proc.communicate()) - self.assertEqual(subprocess.call(flake8_command), 0) + self.assertEqual(proc.returncode, 0) if __name__ == '__main__':