pytest-dev / pytest-dev/pytest-timeout

Mark test as xfail for timeout (only)

Open
#181 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
258
Forks
69
PR merge metrics
No merged PRs in 30d

Description

It might be just a matter of documentation but I failed to find: how to mark test for xfail only if it times out (but still fail otherwise) and ideally only for some other condition (e.g. if on_nfs bool var set).

Thank you in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the pytest-timeout documentation and pytest's xfail behavior. Document how to mark a test as expected to fail only on timeout, while preserving failures for other causes and optionally applying the behavior under a condition such as an on_nfs variable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, testing
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.