MCPcopy
hub / github.com/pytest-dev/pytest / expr

Function expr

src/_pytest/mark/expression.py:175–180  ·  view source on GitHub ↗
(s: Scanner)

Source from the content-addressed store, hash-verified

173
174
175def expr(s: Scanner) -> ast.expr:
176 ret = and_expr(s)
177 while s.accept(TokenType.OR):
178 rhs = and_expr(s)
179 ret = ast.BoolOp(ast.Or(), [ret, rhs])
180 return ret
181
182
183def and_expr(s: Scanner) -> ast.expr:

Callers 2

expressionFunction · 0.85
not_exprFunction · 0.85

Calls 2

and_exprFunction · 0.85
acceptMethod · 0.80

Tested by

no test coverage detected