Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61eb622

Browse files
committed
FIX: small (non-code) fixups
1 parent b4f011c commit 61eb622

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

lib/matplotlib/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,6 @@ def inner(ax, *args, **kwargs):
17751775
"the matplotlib list!)")
17761776
warnings.warn(msg % (label_namer, func.__name__),
17771777
RuntimeWarning, stacklevel=2)
1778-
# raise Exception()
17791778
return func(ax, *args, **kwargs)
17801779
pre_doc = inner.__doc__
17811780
if pre_doc is None:

lib/matplotlib/tests/test_labeled_data_unpacking.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def func_varags_replace_all(ax, *args, **kwargs):
343343

344344

345345
def test_no_label_replacements():
346-
"""Test without "label_namer=None" -> no label replacement at all"""
346+
"""Test with "label_namer=None" -> no label replacement at all"""
347347

348348
@unpack_labeled_data(replace_names=["x", "y"], label_namer=None)
349349
def func_no_label(ax, x, y, ls="x", label=None, w="xyz"):
@@ -390,11 +390,8 @@ def funcy(ax, *args, **kwargs):
390390
list(x), list(y), ls, w, label)
391391

392392
func = unpack_labeled_data(replace_all_args=True, replace_names=["w"],
393-
label_namer="y")(
394-
funcy)
393+
label_namer="y")(funcy)
395394

396-
# assert_equal(func(None, "a","b", w="x", data=data),
397-
# "x: [1, 2], y: [8, 9], ls: x, w: xyz, label: None")
398395
assert_equal(func(None, "a", "b", w="x", label="", data=data),
399396
"x: [1, 2], y: [8, 9], ls: x, w: xyz, label: ")
400397
assert_equal(func(None, "a", "b", w="x", label="text", data=data),

0 commit comments

Comments
 (0)