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

Method _yield_comparisons

src/_pytest/python_api.py:103–108  ·  view source on GitHub ↗

Yield all the pairs of numbers to be compared. This is used to implement the `__eq__` method.

(self, actual)

Source from the content-addressed store, hash-verified

101 return ApproxScalar(x, rel=self.rel, abs=self.abs, nan_ok=self.nan_ok)
102
103 def _yield_comparisons(self, actual):
104 """Yield all the pairs of numbers to be compared.
105
106 This is used to implement the `__eq__` method.
107 """
108 raise NotImplementedError
109
110 def _check_type(self) -> None:
111 """Raise a TypeError if the expected value is not a valid type."""

Callers 2

__eq__Method · 0.95

Calls

no outgoing calls

Tested by 1