We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running pytest in Nix development shell produces PytestConfigWarning: Unknown config option: timeout. Perhaps missing pytest timeout dependency?
PytestConfigWarning: Unknown config option: timeout
====================================================================================== warnings summary ====================================================================================== ../../../../../../../../../nix/store/80fi9yhb3ln1wnpgf8k2vp98399gj0xz-python3.11-pytest-8.3.2/lib/python3.11/site-packages/_pytest/config/__init__.py:1437 /nix/store/80fi9yhb3ln1wnpgf8k2vp98399gj0xz-python3.11-pytest-8.3.2/lib/python3.11/site-packages/_pytest/config/__init__.py:1437: PytestConfigWarning: Unknown config option: timeout self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
The text was updated successfully, but these errors were encountered:
If it wasn't for nix, the solution is :
pip install pytest-timeout
As somewhere the timeout plugin is used, but I'm not sure it should be always required. (It is required now because of how the repo is now)
Sorry, something went wrong.
If it wasn't for nix, the solution is : pip install pytest-timeout As somewhere the timeout plugin is used, but I'm not sure it should be always required. (It is required now because of how the repo is now)
Thanks! This worked for me on Unix. I was receiving the following warning with pytest:
============================================ warnings summary ============================================= ../../../../../../opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/_pytest/config/__init__.py:1441 /opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/_pytest/config/__init__.py:1441: PytestConfigWarning: Unknown config option: timeout self._warn_or_fail_if_strict(f"Unknown config option: {key}\n") -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ====================================== 14 passed, 1 warning in 7.49s ======================================
Fixed it by running pip install pytest-timeout:
=========================================== 14 passed in 5.15s ============================================
No branches or pull requests
Describe the bug
Running pytest in Nix development shell produces
PytestConfigWarning: Unknown config option: timeout
. Perhaps missing pytest timeout dependency?To reproduce
Screenshots
System description
The text was updated successfully, but these errors were encountered: