We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
name
value
1 parent 3cce243 commit 540ede3Copy full SHA for 540ede3
src/_pytest/mark/expression.py
@@ -8,12 +8,15 @@
8
not_expr: 'not' not_expr | '(' expr ')' | ident ('(' name '=' value ( ', ' name '=' value )* ')')?
9
10
ident: (\w|:|\+|-|\.|\[|\]|\\|/)+
11
+name: a valid ident, but not a reserved keyword
12
+value: (unescaped) string literal | (-)?[0-9]+ | 'False' | 'True' | 'None'
13
14
The semantics are:
15
16
- Empty expression evaluates to False.
17
- ident evaluates to True or False according to a provided matcher function.
18
- or/and/not evaluate according to the usual boolean semantics.
19
+- ident with parentheses and keyword arguments evaluates to True or False according to a provided matcher function.
20
"""
21
22
from __future__ import annotations
0 commit comments