Thanks to visit codestin.com Credit goes to github.com
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 0908956 commit 4c44c02Copy full SHA for 4c44c02
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