-
Notifications
You must be signed in to change notification settings - Fork 346
Set __package__ to fix import warnings #546
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #546 +/- ##
==========================================
- Coverage 92% 91.89% -0.12%
==========================================
Files 33 33
Lines 1627 1629 +2
Branches 140 140
==========================================
Hits 1497 1497
- Misses 93 95 +2
Partials 37 37
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #546 +/- ##
==========================================
+ Coverage 92% 92.02% +0.01%
==========================================
Files 33 33
Lines 1627 1767 +140
Branches 140 154 +14
==========================================
+ Hits 1497 1626 +129
- Misses 93 103 +10
- Partials 37 38 +1
Continue to review full report at Codecov.
|
What warning does it fix? |
Sorry, typo, it fixes #495 |
Anyone? |
It is not clear to me why this is needed, can you elaborate? Otherwise / in general it seems fine though. |
@jleclanche |
I suspect it has to do with the way pytest loads plugins. |
Yes.
Stacktrace:
|
Filed pytest-dev/pytest#3061 with pytest. |
Can you confirm that it is only an issue / displayed when using |
Looks like a pytest issue (see pytest-dev/pytest#3061). Warnings can be ignored (temporary solution): nicoddemus/pytest@3dd24f8. |
@blueyed Hey, sorry to get back to this so late but is this PR getting merged? I understand it's not the best fix but I'd really like to get rid of the warnings =/ |
@jleclanche |
pytest has it fixed by now: pytest-dev/pytest@50a0d4f (not yet released I guess) Closing this here for now. Thanks for the PR and discussion of course still! |
Fixes #495
Also see #415.