-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[prerelease] pytest-isort and if session is None: assert parent is None
#9487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's likely related to the item + file inheritance |
If there is something we can fix in pytest-isort, I'm willing to do whatever is needed maintaining backwards compatibility for at least 5 and 6. |
The model for the fixes needed for File+Item inheritance and path/fspath issues is pytest-pyflakes: https://github.com/asmeurer/pytest-flakes/blob/master/pytest_flakes.py I can submit a PR for pytest-isort when I get a chance (and if someone else does feel free to ping me for review). |
One thing I'm wondering about is if we need a better/nicer error output in pytest for this case? Then again we did't see the same kind of failure in any other projects, so I suppose it could be okay as-is. |
Seems like nobody picked this up so far, so I guess we'll just live with this for 7.0.0. I guess that's acceptable given that it only seems to affect one plugin, at least from what @hroncok tested in Fedora. If someone can take a look at fixing the underlying issue in pytest-isort, that'd be great though! |
Opened stephrdev/pytest-isort#40 for this. 👍 |
Perfect, will look into this tonight. |
@stephrdev if you can go to the page earlier than that to at least let the CI run, it would be great. 👍 |
Fixed in stephrdev/pytest-isort#40 |
Another one from #9415 - I don't quite understand what's going on and would like some help here.
When running the tests of
pytest-isort
, they fail with pytest 7.0.0rc1, but they fail in three different ways when bisecting things:After 22dad53:
After d7b0e17:
After f87df9c (also needs 63899c7):
Note that you will need
pytest-isort
master (with stephrdev/pytest-isort#39 in).This might be caused by something
pytest-isort
does (see its source), but honestly I'm pretty lost...cc @RonnyPfannschmidt @bluetech @stephrdev @hroncok
The text was updated successfully, but these errors were encountered: