summaryrefslogtreecommitdiff
path: root/testsuite/test_api.py
diff options
context:
space:
mode:
authorSteven Myint <git@stevenmyint.com>2015-07-14 07:46:40 -0700
committerSteven Myint <git@stevenmyint.com>2015-07-14 07:46:40 -0700
commit1a90865abc3de27c3a9b8375fd8c73b6d2f07b64 (patch)
treefb85e21950be46f72248873d87765c714ea837b8 /testsuite/test_api.py
parentdfafb9d8a50a4b337bee16d8568e8090d0f7a138 (diff)
downloadpep8-1a90865abc3de27c3a9b8375fd8c73b6d2f07b64.tar.gz
Support Python 3.5
This involves fixing a test and avoiding a function deprecated since Python 3.0. https://docs.python.org/dev/library/inspect.html#inspect.getargspec
Diffstat (limited to 'testsuite/test_api.py')
-rw-r--r--testsuite/test_api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/test_api.py b/testsuite/test_api.py
index 341fb34..1cb0d4b 100644
--- a/testsuite/test_api.py
+++ b/testsuite/test_api.py
@@ -339,6 +339,9 @@ class APITestCase(unittest.TestCase):
if 'SyntaxError' in stdout:
# PyPy 2.2 returns a SyntaxError
expected = "stdin:1:2: E901 SyntaxError"
+ elif 'ValueError' in stdout:
+ # Python 3.5.
+ expected = "stdin:1:1: E901 ValueError"
else:
expected = "stdin:1:1: E901 TypeError"
self.assertTrue(stdout.startswith(expected),