Skip to content
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

[Bug] pytest in Nix environment shell produces Unknown config option: timeout #4526

Open
wenzeslaus opened this issue Oct 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wenzeslaus
Copy link
Member

wenzeslaus commented Oct 15, 2024

Describe the bug

Running pytest in Nix development shell produces PytestConfigWarning: Unknown config option: timeout. Perhaps missing pytest timeout dependency?

To reproduce

  • Get Nix development/build environment shell
  • run pytest . as instructed in by dev-help text

Screenshots

====================================================================================== 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")

System description

  • Nix setup from main
@wenzeslaus wenzeslaus added the bug Something isn't working label Oct 15, 2024
@echoix
Copy link
Member

echoix commented Oct 15, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants