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

Method test_repr_nd_array

testing/python/approx.py:382–386  ·  view source on GitHub ↗

Make sure that arrays of all different dimensions are repr'd correctly.

(self, value, expected_repr_string)

Source from the content-addressed store, hash-verified

380 ],
381 )
382 def test_repr_nd_array(self, value, expected_repr_string):
383 """Make sure that arrays of all different dimensions are repr'd correctly."""
384 np = pytest.importorskip("numpy")
385 np_array = np.array(value)
386 assert repr(approx(np_array)) == expected_repr_string
387
388 def test_bool(self):
389 with pytest.raises(AssertionError) as err:

Callers

nothing calls this directly

Calls 1

approxFunction · 0.90

Tested by

no test coverage detected