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 898fbaa commit 5bd4618Copy full SHA for 5bd4618
1 file changed
lib/matplotlib/tests/test_axes.py
@@ -5484,8 +5484,14 @@ def test_none_kwargs():
5484
5485
5486
def test_ls_ds_conflict():
5487
- with pytest.raises(ValueError):
5488
- 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.
5489
+ # We still need to test this until it's removed from the code.
5490
+ # But we don't want to see the deprecation warning in the test.
5491
+ warnings.filterwarnings('ignore',
5492
+ category=MatplotlibDeprecationWarning)
5493
+ with pytest.raises(ValueError):
5494
+ plt.plot(range(32), linestyle='steps-pre:', drawstyle='steps-post')
5495
5496
5497
def test_bar_uint8():
0 commit comments