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

Function test_too_many_positional

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

Source from the content-addressed store, hash-verified

57
58
59def test_too_many_positional():
60 # the second argument is positional but can be passed as keyword.
61 with pytest.raises(TypeError,
62 match="takes from 2 to 3 positional arguments but 4 were given"):
63 func(1, 2, 3, 4)
64
65
66def test_multiple_values():

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…