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

Method __repr__

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

Source from the content-addressed store, hash-verified

145 """Perform approximate comparisons where the expected value is numpy array."""
146
147 def __repr__(self) -> str:
148 list_scalars = _recursive_list_map(self._approx_scalar, self.expected.tolist())
149 return f"approx({list_scalars!r})"
150
151 def _repr_compare(self, other_side: "ndarray") -> List[str]:
152 import itertools

Callers

nothing calls this directly

Calls 1

_recursive_list_mapFunction · 0.85

Tested by

no test coverage detected