Skip to content

Commit 07c0f86

Browse files
committed
Add a message for test_check_nullbytes
1 parent 592e498 commit 07c0f86

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

testsuite/test_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ def test_check_nullbytes(self):
330330
pep8style = pep8.StyleGuide()
331331
count_errors = pep8style.input_file('stdin', lines=['\x00\n'])
332332

333-
self.assertTrue(sys.stdout[0].startswith("stdin:1:1: E901 TypeError"))
333+
self.assertTrue(sys.stdout[0].startswith("stdin:1:1: E901 TypeError"),
334+
msg='Output is %r' % sys.stdout[0])
334335
self.assertFalse(sys.stderr)
335336
self.assertEqual(count_errors, 1)
336337

0 commit comments

Comments
 (0)