From de87248ba46ae71a05c401e8825a18dc3354ead7 Mon Sep 17 00:00:00 2001 From: Petter Strandmark Date: Sun, 19 Apr 2020 10:31:35 +0200 Subject: [PATCH 1/2] Fix test for nightly Python (3.9) --- pyflakes/test/test_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyflakes/test/test_api.py b/pyflakes/test/test_api.py index 128aa69d..b579ac8e 100644 --- a/pyflakes/test/test_api.py +++ b/pyflakes/test/test_api.py @@ -449,6 +449,8 @@ def evaluate(source): 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' From 96872955d48c3af8a66507a442970ff3f1b7afb1 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 26 Apr 2020 15:12:24 -0700 Subject: [PATCH 2/2] allow_failures: true for nightly --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index ae08482d..e51b2e0c 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