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

Class ConftestImportFailure

src/_pytest/config/__init__.py:127–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127class ConftestImportFailure(Exception):
128 def __init__(
129 self,
130 path: pathlib.Path,
131 *,
132 cause: Exception,
133 ) -> None:
134 self.path = path
135 self.cause = cause
136
137 def __str__(self) -> str:
138 return f"{type(self.cause).__name__}: {self.cause} (from {self.path})"
139
140
141def filter_traceback_for_conftest_import_failure(

Callers 2

_importconftestMethod · 0.85

Calls

no outgoing calls

Tested by 1