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

Method _yield_comparisons

src/_pytest/python_api.py:120–125  ·  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

118 return ApproxScalar(x, rel=self.rel, abs=self.abs, nan_ok=self.nan_ok)
119
120 def _yield_comparisons(self, actual):
121 """Yield all the pairs of numbers to be compared.
122
123 This is used to implement the `__eq__` method.
124 """
125 raise NotImplementedError
126
127 def _check_type(self) -> None:
128 """Raise a TypeError if the expected value is not a valid type."""

Callers 1

__eq__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected