We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2507f2c + 5bd4618 commit e99be22Copy full SHA for e99be22
lib/matplotlib/tests/test_axes.py
@@ -5501,8 +5501,14 @@ def test_none_kwargs():
5501
5502
5503
def test_ls_ds_conflict():
5504
- with pytest.raises(ValueError):
5505
- plt.plot(range(32), linestyle='steps-pre:', drawstyle='steps-post')
+ with warnings.catch_warnings():
+ # Passing the drawstyle with the linestyle is deprecated since 3.1.
5506
+ # We still need to test this until it's removed from the code.
5507
+ # But we don't want to see the deprecation warning in the test.
5508
+ warnings.filterwarnings('ignore',
5509
+ category=MatplotlibDeprecationWarning)
5510
+ with pytest.raises(ValueError):
5511
+ plt.plot(range(32), linestyle='steps-pre:', drawstyle='steps-post')
5512
5513
5514
def test_bar_uint8():
0 commit comments