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 89d3366 commit 887e482Copy full SHA for 887e482
lib/matplotlib/tests/test_labeled_data_unpacking.py
@@ -51,13 +51,17 @@ def plot_func_varags(ax, *args, **kwargs):
51
def test_compiletime_checks():
52
"""test decorator invocations -> no replacements"""
53
54
- def func(ax, x, y): pass
+ def func(ax, x, y):
55
+ pass
56
- def func_args(ax, x, y, *args): pass
57
+ def func_args(ax, x, y, *args):
58
59
- def func_kwargs(ax, x, y, **kwargs): pass
60
+ def func_kwargs(ax, x, y, **kwargs):
61
62
- def func_no_ax_args(*args, **kwargs): pass
63
+ def func_no_ax_args(*args, **kwargs):
64
65
66
# this is ok
67
unpack_labeled_data(replace_names=["x", "y"])(func)
@@ -126,7 +130,7 @@ def f():
126
130
func(None, x="a", y="b")
127
131
128
132
# This sets a label although the function can't handle it.
129
- assert_raises(TypeError, f)
133
+ pytest.raises(TypeError, f())
134
135
136
def test_function_call_without_data():
0 commit comments