Skip to content

Declare pytest-timeout as a test dependency#652

Closed
nathanjmcdougall wants to merge 1 commit into
pypest:developfrom
nathanjmcdougall:fix/declare-pytest-timeout
Closed

Declare pytest-timeout as a test dependency#652
nathanjmcdougall wants to merge 1 commit into
pypest:developfrom
nathanjmcdougall:fix/declare-pytest-timeout

Conversation

@nathanjmcdougall

Copy link
Copy Markdown
Contributor

It's being used here, for example:

@pytest.mark.timeout(method='thread', timeout=90)
def geostat_prior_builder_test(tmp_path):

At the moment, this isn't declared as a dependency so when trying to collect the pytest tests, a warning is emitted:

>> pytest autotest --collect-only 

...

autotest\utils_tests.py:826
  C:\Users\namc\Repositories\pyemu\autotest\utils_tests.py:826: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html

@mwtoews

mwtoews commented Dec 13, 2025

Copy link
Copy Markdown
Contributor

Same fix in #643

@briochh

briochh commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator

now covered off by #668

@briochh briochh closed this Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants