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

Method test_nonnumeric_list_repr

testing/python/approx.py:822–825  ·  view source on GitHub ↗

Lists with non-numerics and infinites have no tolerances

(self)

Source from the content-addressed store, hash-verified

820 )
821
822 def test_nonnumeric_list_repr(self):
823 """Lists with non-numerics and infinites have no tolerances"""
824 x1 = [1.0000005, None, inf]
825 assert repr(approx(x1)) == "approx([1.0000005 ± 1.0e-06, None, inf])"
826
827 @pytest.mark.parametrize(
828 "op",

Callers

nothing calls this directly

Calls 1

approxFunction · 0.90

Tested by

no test coverage detected