summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetter Strandmark <petter.strandmark@gmail.com>2020-04-27 00:53:00 +0200
committerGitHub <noreply@github.com>2020-04-26 15:53:00 -0700
commite83d920aafa92df9bda7dad606d401dda1ba722d (patch)
treee25ae2b97e99d046103849a5fd50779877a0080c
parentc72d6cf1a9a119c1dd7a7674f36da21aea32d828 (diff)
downloadpyflakes-e83d920aafa92df9bda7dad606d401dda1ba722d.tar.gz
Fix test for nightly Python (3.9) (#532)
* Fix test for nightly Python (3.9) * allow_failures: true for nightly Co-authored-by: Anthony Sottile <asottile@umich.edu>
-rw-r--r--.travis.yml5
-rw-r--r--pyflakes/test/test_api.py2
2 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index ae08482..e51b2e0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,5 +12,10 @@ matrix:
dist: xenial
- python: nightly
dist: xenial
+# TODO: https://bugs.python.org/issue40334
+# the PEG parser is currently broken in some cases
+ allow_failures:
+ - python: nightly
+ dist: xenial
install: pip install tox
script: tox -e py
diff --git a/pyflakes/test/test_api.py b/pyflakes/test/test_api.py
index 128aa69..b579ac8 100644
--- a/pyflakes/test/test_api.py
+++ b/pyflakes/test/test_api.py
@@ -449,6 +449,8 @@ def baz():
with self.makeTempFile(source) as sourcePath:
if PYPY:
message = 'end of file (EOF) while scanning triple-quoted string literal'
+ elif sys.version_info >= (3, 9):
+ message = 'invalid string prefix'
else:
message = 'invalid syntax'