Skip to content

Commit f4e4880

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 1ec57cb commit f4e4880

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,6 +2387,10 @@ def test_view_init_positional_args():
23872387
assert ax.roll == 30
23882388
assert ax._vertical_axis == 1
23892389

2390+
with pytest.raises(Exception,
2391+
match="Positional argument repeated as keyword argument."):
2392+
ax.view_init(10, elev=10)
2393+
23902394
with pytest.raises(TypeError):
23912395
ax.view_init(10, 20, 30, "y", False, "superfluous argument")
23922396

0 commit comments

Comments
 (0)