diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2013-05-01 23:48:21 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2013-05-01 23:48:21 +0200 |
commit | 52ba8c543de4dee17d90fc4a566b18b9e0771b3d (patch) | |
tree | 3e362b1895d44ce13135793fdba0c5e9192dcdc1 /testsuite | |
parent | 00aff369146b3955feaa83fe7a0136d4b24a6c08 (diff) | |
download | pep8-52ba8c543de4dee17d90fc4a566b18b9e0771b3d.tar.gz |
Add E265 for space before block comment; issue #190
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/E11.py | 4 | ||||
-rw-r--r-- | testsuite/test_api.py | 4 | ||||
-rw-r--r-- | testsuite/test_shell.py | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/testsuite/E11.py b/testsuite/E11.py index 8735e25..98b9431 100644 --- a/testsuite/E11.py +++ b/testsuite/E11.py @@ -10,3 +10,7 @@ print #: E113 print print +#: E111 E113 +mimetype = 'application/x-directory' + # 'httpd/unix-directory' +create_date = False diff --git a/testsuite/test_api.py b/testsuite/test_api.py index 3fa35f1..bff533f 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, 4) + self.assertEqual(report.total_errors, 6) 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, 4) + self.assertEqual(report.total_errors, 6) self.assertFalse(sys.stderr) self.reset() diff --git a/testsuite/test_shell.py b/testsuite/test_shell.py index 1f12b44..0313c0c 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), 4) + self.assertEqual(len(stdout), 6) 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)) |