Skip to content

Commit 75a2225

Browse files
authored
🔥 Drop the missing kwargs case
1 parent 329662e commit 75a2225

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/_pytest/mark/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,6 @@ def __call__(self, name: str, /, **kwargs: str | int | bool | None) -> bool:
238238
if not (matches := self.own_mark_name_mapping.get(name, [])):
239239
return False
240240

241-
if not kwargs:
242-
return True
243-
244241
for mark in matches:
245242
if all(mark.kwargs.get(k, NOT_SET) == v for k, v in kwargs.items()):
246243
return True

0 commit comments

Comments
 (0)