From 866619420158180a1e44de1eeb35c01a5d1a5902 Mon Sep 17 00:00:00 2001 From: Ian Lee Date: Sat, 13 Dec 2014 19:26:05 -0800 Subject: Remove stdout check that fails under pypy. This second E901 error actually only shows up in the test framework and does not happen if you run the code within the Python interpreter. --- testsuite/test_api.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/testsuite/test_api.py b/testsuite/test_api.py index 173eef5..f38b101 100644 --- a/testsuite/test_api.py +++ b/testsuite/test_api.py @@ -350,19 +350,12 @@ class APITestCase(unittest.TestCase): ] pep8style = pep8.StyleGuide() - count_errors = pep8style.input_file('stdin', lines=lines) + pep8style.input_file('stdin', lines=lines) stdout = sys.stdout.getvalue() - self.assertEqual(count_errors, 2) expected = 'stdin:2:5: E901 TokenError: EOF in multi-line string' self.assertTrue(expected in stdout) - expected = ( - 'stdin:2:26: ' - 'E901 SyntaxError: EOF while scanning triple-quoted string literal' - ) - self.assertTrue(expected in stdout) - def test_styleguide_continuation_line_outdented(self): pep8.register_check(DummyChecker, ['Z701']) lines = [ -- cgit v1.2.1