-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
7.1.0 - ImportError with pytest-cases #9762
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
This is a issue with pytest-cases It's importing pytest internal functions and seems to be affected by a recent refactoring Cc @smarie |
indeed. i'll have a look |
This is related with the fact that pytest-cases needs to reproduce the internal behaviour of pytest concerning ids, so it imports I'll check if |
This is the change that caused the issue : #9547 I now have to understand how to use this new class |
It seems from this line https://github.com/pytest-dev/pytest/pull/9547/files#diff-8c7f0a3f8b92ae0916642f3b256b96789070d3637e6d7ea4dfe1f7b3e2af3fe3L289 that using |
* Removed erroneous copyright headers * Fixed `ImportError` when using `pytest 7.1`. Fixed #264 and pytest-dev/pytest#9762 * Added two easy flake8 fixes Co-authored-by: Sylvain MARIE <[email protected]>
Fixed in pytest-cases 3.6.10. |
Thanks @smarie for the quick fix! |
Hi team,
trying to run a test suite (FastAPI) in a container
RUN pip3 install --no-cache-dir responses pytest-7.0.1 pytest-asyncio pytest_cases pytest-cov httpx asgi-lifespan starlette ENTRYPOINT ["pytest","-vv","--cov=.","tests"]
things are working fine in
7.0.1
execution is failing in
7.1.0
Thanks!!
(Edited by @The-Compiler to use triple-backticks for a more readable log)
The text was updated successfully, but these errors were encountered: