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

Function test_string_fallbacks

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

Source from the content-addressed store, hash-verified

70
71
72def test_string_fallbacks():
73 # We can (currently?) use numpy strings to test the "slow" fallbacks
74 # that should normally not be taken due to string interning.
75 arg2 = np.str_("arg2")
76 missing_arg = np.str_("missing_arg")
77 func(1, **{arg2: 3})
78 with pytest.raises(TypeError,
79 match="got an unexpected keyword argument 'missing_arg'"):
80 func(2, **{missing_arg: 3})
81
82
83def test_too_many_arguments_method_forwarding():

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…