OSGeo / grass

GRASS GIS - free and open-source geospatial processing engine
https://grass.osgeo.org
Other
842 stars 308 forks source link

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

Open wenzeslaus opened 1 week ago

wenzeslaus commented 1 week ago

Describe the bug

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

To reproduce

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

echoix commented 1 week ago

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)