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

Method __post_init__

src/_pytest/subtests.py:64–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 kwargs: Mapping[str, Any]
63
64 def __post_init__(self) -> None:
65 # Brute-force the returned kwargs dict to be JSON serializable (pytest-dev/pytest-xdist#1273).
66 object.__setattr__(
67 self, "kwargs", {k: saferepr(v) for (k, v) in self.kwargs.items()}
68 )
69
70 def _to_json(self) -> dict[str, Any]:
71 result = dataclasses.asdict(self)

Callers

nothing calls this directly

Calls 1

safereprFunction · 0.90

Tested by

no test coverage detected