pytest-dev / pytest-dev/pytest

Exit exception

Open
#3,144 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin: xdist type: enhancement
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

We need to except Exit before this part of code:

https://github.com/pytest-dev/pytest/blob/0d96a5bf9059e51324ac24ec24d68af1c35db6d8/_pytest/main.py#L110-L116

and pass a message to xdist module

it needed for xdist:
original task:
https://github.com/pytest-dev/pytest-xdist/issues/86

I'm ready to create pull request, but I don't know how to pass a message to xdist module, Please, give me an advice. Thanks!

Contributor guide

Open the contributing guide

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 at _pytest/main.py lines 110-116 and review how Exit is handled before that code. Read the linked pytest-xdist issue to understand the required message handoff to xdist. Done means Exit is excluded at that point and the needed message reaches xdist.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.