summaryrefslogtreecommitdiff
path: root/testsuite/test_api.py
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2014-12-13 19:26:05 -0800
committerIan Lee <IanLee1521@gmail.com>2014-12-13 19:26:05 -0800
commit866619420158180a1e44de1eeb35c01a5d1a5902 (patch)
treed6f181f448b9affc8a7a6c4ad5ec617977328230 /testsuite/test_api.py
parente585618c224568c2f47d99ab615b32e5f821a633 (diff)
downloadpep8-866619420158180a1e44de1eeb35c01a5d1a5902.tar.gz
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.
Diffstat (limited to 'testsuite/test_api.py')
-rw-r--r--testsuite/test_api.py9
1 files changed, 1 insertions, 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 = [