8000 TST: added test for ValueError · matplotlib/matplotlib@9b195c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b195c2

Browse files
committed
TST: added test for ValueError
1 parent 7d991ae commit 9b195c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,15 @@ def test_polar_theta_position():
747747
ax.set_theta_direction('clockwise')
748748

749749

750+
def test_polar_invertedylim():
751+
fig = plt.figure()
752+
ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True)
753+
with pytest.raises(ValueError):
754+
ax.set_ylim(90, -45)
755+
with pytest.raises(ValueError):
756+
ax.set_rlim(90, -45)
757+
758+
750759
@image_comparison(baseline_images=['polar_rlabel_position'], style='default')
751760
def test_polar_rlabel_position():
752761
fig = plt.figure()

0 commit comments

Comments
 (0)
0