8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cf3ee6 commit 6b6b791Copy full SHA for 6b6b791
numpy/core/tests/test_argparse.py
@@ -60,3 +60,12 @@ def test_string_fallbacks():
60
match="got an unexpected keyword argument 'missing_arg'"):
61
func(2, **{missing_arg: 3})
62
63
+
64
+def test_too_many_arguments_method_forwarding():
65
+ # Not directly related to the standard argument parsing, but we sometimes
66
+ # forward methods to Python: arr.mean() calls np.core._methods._mean()
67
+ # This adds code coverage for this `npy_forward_method`.
68
+ arr = np.arange(3)
69
+ args = range(1000)
70
+ with pytest.raises(TypeError):
71
+ arr.mean(*args)
0 commit comments