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

Class ParseError

src/_pytest/mark/expression.py:57–69  ·  view source on GitHub ↗

The expression contains invalid syntax. :param column: The column in the line where the error occurred (1-based). :param message: A description of the error.

Source from the content-addressed store, hash-verified

55
56
57class ParseError(Exception):
58 """The expression contains invalid syntax.
59
60 :param column: The column in the line where the error occurred (1-based).
61 :param message: A description of the error.
62 """
63
64 def __init__(self, column: int, message: str) -> None:
65 self.column = column
66 self.message = message
67
68 def __str__(self) -> str:
69 return f"at column {self.column}: {self.message}"
70
71
72class Scanner:

Callers 2

lexMethod · 0.85
rejectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected