diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-03-26 00:31:04 +0100 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-03-26 00:31:04 +0100 |
commit | 07c0f86e0b43e52b005ca6539b2d908e0c730a7e (patch) | |
tree | 3b218addd8bf7768438d00d4d80087473fcaeb01 /testsuite | |
parent | 592e49867191ec85fa0ca2e691fb0801f03fe2f5 (diff) | |
download | pep8-07c0f86e0b43e52b005ca6539b2d908e0c730a7e.tar.gz |
Add a message for test_check_nullbytes
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/test_api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/test_api.py b/testsuite/test_api.py index 95f99d9..1846096 100644 --- a/testsuite/test_api.py +++ b/testsuite/test_api.py @@ -330,7 +330,8 @@ class APITestCase(unittest.TestCase): pep8style = pep8.StyleGuide() count_errors = pep8style.input_file('stdin', lines=['\x00\n']) - self.assertTrue(sys.stdout[0].startswith("stdin:1:1: E901 TypeError")) + self.assertTrue(sys.stdout[0].startswith("stdin:1:1: E901 TypeError"), + msg='Output is %r' % sys.stdout[0]) self.assertFalse(sys.stderr) self.assertEqual(count_errors, 1) |