MCPcopy Create free account
hub / github.com/numpy/numpy / test_repr_roundtrip_bytes

Function test_repr_roundtrip_bytes

numpy/core/tests/test_longdouble.py:47–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46@pytest.mark.skipif(string_to_longdouble_inaccurate, reason="Need strtold_l")
47def test_repr_roundtrip_bytes():
48 o = 1 + LD_INFO.eps
49 assert_equal(np.longdouble(repr(o).encode("ascii")), o)
50
51
52@pytest.mark.skipif(string_to_longdouble_inaccurate, reason="Need strtold_l")

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
encodeMethod · 0.80

Tested by

no test coverage detected