Skip to content

Commit 953177e

Browse files
committed
Add test for exception rejecting positional and keyword argument combinations
- add test for exception: "Positional argument repeated as keyword argument."
1 parent 5c17e59 commit 953177e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

+4
Original file line numberDiff line numberDiff line change
@@ -2429,6 +2429,10 @@ def test_view_init_positional_args():
24292429
assert ax.roll == 30
24302430
assert ax._vertical_axis == 1
24312431

2432+
with pytest.raises(Exception,
2433+
match="Positional argument repeated as keyword argument."):
2434+
ax.view_init(10, elev=10)
2435+
24322436
with pytest.raises(TypeError):
24332437
ax.view_init(10, 20, 30, "y", False, "superfluous argument")
24342438

0 commit comments

Comments
 (0)