Skip to content

Fix test for nightly Python (3.9)#532

Merged
asottile merged 2 commits into
PyCQA:masterfrom
PetterS:py39
Apr 26, 2020
Merged

Fix test for nightly Python (3.9)#532
asottile merged 2 commits into
PyCQA:masterfrom
PetterS:py39

Conversation

@PetterS

@PetterS PetterS commented Apr 19, 2020

Copy link
Copy Markdown
Contributor

Trying to get the nightly test in #530 to pass.

@PetterS
PetterS force-pushed the py39 branch 4 times, most recently from 2397757 to b03aaaf Compare April 19, 2020 08:47
@PetterS

PetterS commented Apr 19, 2020

Copy link
Copy Markdown
Contributor Author

OK, test passes now but feels way too brittle.

Should be enough to assert that the error starts with sourcePath + ":8:"

Comment thread pyflakes/test/test_api.py Outdated
@asottile

Copy link
Copy Markdown
Member

could you rebase this? it should be fixed upstream now

here's a simpler patch you can use instead

@PetterS

PetterS commented Apr 23, 2020

Copy link
Copy Markdown
Contributor Author

Done!

But the Travis check does not seem to have run for some reason.

@asottile

Copy link
Copy Markdown
Member

looks like the new PEG parser has broken these even further :(

@PetterS

PetterS commented Apr 25, 2020

Copy link
Copy Markdown
Contributor Author

Drop these tests for nightly? Seem a little too fragile?

@asottile

Copy link
Copy Markdown
Member

the tests are valuable, and have pointed out a bug in cpython

I think we'll probably allow_failures: ... for now though to allow patches to flow while we wait for cpython to fix things

@PetterS

PetterS commented Apr 26, 2020

Copy link
Copy Markdown
Contributor Author

OK, where is that setting?

(Should probably move some version of these tests into CPython if they are useful in catching CPython bugs)

@asottile

Copy link
Copy Markdown
Member

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants