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

Method __repr__

src/_pytest/python_api.py:133–137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 """Perform approximate comparisons where the expected value is numpy array."""
132
133 def __repr__(self) -> str:
134 list_scalars = _recursive_sequence_map(
135 self._approx_scalar, self.expected.tolist()
136 )
137 return f"approx({list_scalars!r})"
138
139 def _repr_compare(self, other_side: ndarray | list[Any]) -> list[str]:
140 import itertools

Callers

nothing calls this directly

Calls 1

_recursive_sequence_mapFunction · 0.85

Tested by

no test coverage detected