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

Function test_invalid_integers

numpy/_core/tests/test_argparse.py:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def test_invalid_integers():
40 with pytest.raises(TypeError,
41 match="integer argument expected, got float"):
42 func(1.)
43 with pytest.raises(OverflowError):
44 func(2**100)
45
46
47def test_missing_arguments():

Callers

nothing calls this directly

Calls 1

funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…