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 e12f16a commit 6a66d30Copy full SHA for 6a66d30
1 file changed
lib/matplotlib/tests/test_cbook.py
@@ -574,6 +574,28 @@ def test_safe_first_element_pandas_series(pd):
574
assert actual == 0
575
576
577
+def test_delete_parameter():
578
+ @cbook._delete_parameter("3.0", "foo")
579
+ def func1(foo=None):
580
+ pass
581
+
582
583
+ def func2(**kwargs):
584
585
586
+ for func in [func1, func2]:
587
+ func() # No warning.
588
+ with pytest.warns(MatplotlibDeprecationWarning):
589
+ func(foo="bar")
590
591
+ def pyplot_wrapper(foo=cbook.deprecation._deprecated_parameter):
592
+ func1(foo)
593
594
+ pyplot_wrapper() # No warning.
595
596
597
598
599
def test_make_keyword_only():
600
@cbook._make_keyword_only("3.0", "arg")
601
def func(pre, arg, post=None):
0 commit comments