From 28c4da8b984d853b6f9d2c93c4cadab7a8013998 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Mon, 12 Jan 2026 13:27:23 +0200 Subject: [PATCH] Merge pull request #14106 from flying-sheep/xfail-default typing: default for xfail condition is `True` (cherry picked from commit 317ea9a7c887cccede7e42bc6d82533d3be68c26) --- src/_pytest/mark/structures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/mark/structures.py b/src/_pytest/mark/structures.py index 16bb6d81119..97842fc5704 100644 --- a/src/_pytest/mark/structures.py +++ b/src/_pytest/mark/structures.py @@ -496,7 +496,7 @@ def __call__(self, arg: Markable) -> Markable: ... @overload def __call__( self, - condition: str | bool = False, + condition: str | bool = True, *conditions: str | bool, reason: str = ..., run: bool = ...,