diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-26 22:45:40 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-26 22:45:40 +0200 |
commit | 8a37cd90fdc731d151628b541d3edfd056f67e7c (patch) | |
tree | 200df5dfa99ae4af9b878b9eeab495867ca36b35 /testsuite | |
parent | 7b9449d525bcc2c5df4699616d8b75de76a586d4 (diff) | |
download | pep8-8a37cd90fdc731d151628b541d3edfd056f67e7c.tar.gz |
Fix tests
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/test_api.py | 4 | ||||
-rw-r--r-- | testsuite/test_shell.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/test_api.py b/testsuite/test_api.py index fba27c7..980fe9e 100644 --- a/testsuite/test_api.py +++ b/testsuite/test_api.py @@ -124,7 +124,7 @@ class APITestCase(unittest.TestCase): report = pep8.StyleGuide().check_files([E11]) stdout = sys.stdout.getvalue().splitlines() self.assertEqual(len(stdout), report.total_errors) - self.assertEqual(report.total_errors, 6) + self.assertEqual(report.total_errors, 17) self.assertFalse(sys.stderr) self.reset() @@ -132,7 +132,7 @@ class APITestCase(unittest.TestCase): report = pep8.StyleGuide(paths=[E11]).check_files() stdout = sys.stdout.getvalue().splitlines() self.assertEqual(len(stdout), report.total_errors) - self.assertEqual(report.total_errors, 6) + self.assertEqual(report.total_errors, 17) self.assertFalse(sys.stderr) self.reset() diff --git a/testsuite/test_shell.py b/testsuite/test_shell.py index e1205cc..e536852 100644 --- a/testsuite/test_shell.py +++ b/testsuite/test_shell.py @@ -75,7 +75,7 @@ class ShellTestCase(unittest.TestCase): stdout = stdout.splitlines() self.assertEqual(errcode, 1) self.assertFalse(stderr) - self.assertEqual(len(stdout), 6) + self.assertEqual(len(stdout), 17) for line, num, col in zip(stdout, (3, 6, 9, 12), (3, 6, 1, 5)): path, x, y, msg = line.split(':') self.assertTrue(path.endswith(E11)) |