Skip to content

Commit e83d920

Browse files
PetterSasottile
andauthored
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 <[email protected]>
1 parent c72d6cf commit e83d920

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@ matrix:
1212
dist: xenial
1313
- python: nightly
1414
dist: xenial
15+
# TODO: https://bugs.python.org/issue40334
16+
# the PEG parser is currently broken in some cases
17+
allow_failures:
18+
- python: nightly
19+
dist: xenial
1520
install: pip install tox
1621
script: tox -e py

pyflakes/test/test_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ def evaluate(source):
449449
with self.makeTempFile(source) as sourcePath:
450450
if PYPY:
451451
message = 'end of file (EOF) while scanning triple-quoted string literal'
452+
elif sys.version_info >= (3, 9):
453+
message = 'invalid string prefix'
452454
else:
453455
message = 'invalid syntax'
454456

0 commit comments

Comments
 (0)