Skip to content

Honor the advertised debugger detection marker override - #206

Open
oyeong011 wants to merge 1 commit into
pytest-dev:mainfrom
oyeong011:fix/pytest-timeout-regression
Open

Honor the advertised debugger detection marker override#206
oyeong011 wants to merge 1 commit into
pytest-dev:mainfrom
oyeong011:fix/pytest-timeout-regression

Conversation

@oyeong011

Copy link
Copy Markdown

Problem and change

pytest --markers advertises disable_debugger_detection on the timeout marker, and item-setting validation already supports it, but the parser rejects that keyword. Preserve the marker value and pass it through existing validation. The regression launches pytest subprocesses with both True and False and reads the resulting item settings; timeout=0 avoids timing-based assertions.

Verification

Original regression: 2 failed (exit 1), each child pytest exited with internal error for Invalid keyword argument. Fixed regression: 2 passed (exit 0), both children passed/exit 0. Full suite: 53 passed, 2 skipped, 6 xfailed (exit 0), 75 seconds. Ruff check/format and diff check pass.

Limits

Tested macOS Python 3.12.13 and pytest 9.1.1 only. Existing platform skips and expected failures remain.

AI assistance: OpenAI Codex drafted and checked this change; all reported commands were run locally.

Confidence: high
Scope-risk: narrow
Tested: Regression fails before fix and passes after; full suite results recorded externally
Not-tested: Other operating systems and Python versions
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.

1 participant