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

Method test_numpy_array_wrong_shape

testing/python/approx.py:698–705  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

696 assert op(np.array(a), approx(np.array(x)))
697
698 def test_numpy_array_wrong_shape(self):
699 np = pytest.importorskip("numpy")
700
701 a12 = np.array([[1, 2]])
702 a21 = np.array([[1], [2]])
703
704 assert a12 != approx(a21)
705 assert a21 != approx(a12)
706
707 def test_numpy_array_protocol(self):
708 """

Callers

nothing calls this directly

Calls 1

approxFunction · 0.90

Tested by

no test coverage detected