-
Notifications
You must be signed in to change notification settings - Fork 30
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
AttributeError: 'Config' object has no attribute 'cache' with cacheprovider disabled #408
Comments
Yeah we could rework to not need the cache. |
Thanks. In my case I have caching disabled since my tests run inside a read-only container filesystem (run by AWS lambda), although having the tests execute randomly is still desirable. |
Thanks for describing your use case. Fix released in 3.10.2, try that. |
I can confirm the fix in $ pytest -p no:cacheprovider test_pass.py -v
================================================================================= test session starts =================================================================================
platform linux -- Python 3.8.10, pytest-6.2.5, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
Using --randomly-seed=3228386608
rootdir: /tmp/mytest
plugins: randomly-3.10.2
collected 2 items
test_pass.py::test_pass1 PASSED [ 50%]
test_pass.py::test_pass2 PASSED [100%]
================================================================================== 2 passed in 0.01s ================================================================================== Thanks for the quick fix @adamchainz 🙏 |
Python Version
3.8.10
pytest Version
6.2.5
Package Version
3.10.1
Description
pytest fails to run tests if
cacheprovider
plugin is disabled during test execution.Steps to reproduce error
pytest-randomly
and repeat step 2randomly
disabled, works:The text was updated successfully, but these errors were encountered: