Skip to content

Commit 887e482

Browse files
committed
flake8 fixes
1 parent 89d3366 commit 887e482

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

lib/matplotlib/tests/test_labeled_data_unpacking.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,17 @@ def plot_func_varags(ax, *args, **kwargs):
5151
def test_compiletime_checks():
5252
"""test decorator invocations -> no replacements"""
5353

54-
def func(ax, x, y): pass
54+
def func(ax, x, y):
55+
pass
5556

56-
def func_args(ax, x, y, *args): pass
57+
def func_args(ax, x, y, *args):
58+
pass
5759

58-
def func_kwargs(ax, x, y, **kwargs): pass
60+
def func_kwargs(ax, x, y, **kwargs):
61+
pass
5962

60-
def func_no_ax_args(*args, **kwargs): pass
63+
def func_no_ax_args(*args, **kwargs):
64+
pass
6165

6266
# this is ok
6367
unpack_labeled_data(replace_names=["x", "y"])(func)
@@ -126,7 +130,7 @@ def f():
126130
func(None, x="a", y="b")
127131

128132
# This sets a label although the function can't handle it.
129-
assert_raises(TypeError, f)
133+
pytest.raises(TypeError, f())
130134

131135

132136
def test_function_call_without_data():

0 commit comments

Comments
 (0)