MCPcopy Create free account
hub / github.com/pytest-dev/pytest / expr

Function expr

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

Source from the content-addressed store, hash-verified

143
144
145def expr(s: Scanner) -> ast.expr:
146 ret = and_expr(s)
147 while s.accept(TokenType.OR):
148 rhs = and_expr(s)
149 ret = ast.BoolOp(ast.Or(), [ret, rhs])
150 return ret
151
152
153def 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