MCPcopy Index your code
hub / github.com/numpy/numpy / test_complex_errors

Method test_complex_errors

numpy/_core/tests/test_scalar_ctors.py:127–133  ·  view source on GitHub ↗
(self, t)

Source from the content-addressed store, hash-verified

125
126 @pytest.mark.parametrize('t', cfloat_types)
127 def test_complex_errors(self, t):
128 with pytest.raises(TypeError):
129 t(1j, 1j)
130 with pytest.raises(TypeError):
131 t(1, None)
132 with pytest.raises(TypeError):
133 t(None, 1)
134
135
136@pytest.mark.parametrize("length",

Callers

nothing calls this directly

Calls 1

tFunction · 0.85

Tested by

no test coverage detected