Skip to content

Commit 5fd4351

Browse files
committed
fixing syntax failures
1 parent b8b3909 commit 5fd4351

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/matplotlib/tests/test_dates.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,7 @@ def _create_auto_date_locator(date1, date2):
334334
for t_delta, expected in results:
335335
d2 = d1 + t_delta
336336
locator = _create_auto_date_locator(d1, d2)
337-
assert list(map(str, mdates.num2date(locator()))) ==
338-
expected
337+
assert list(map(str, mdates.num2date(locator()))) == expected
339338

340339

341340
@image_comparison(baseline_images=['date_inverted_limit'],

lib/matplotlib/tests/test_labeled_data_unpacking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def test_function_call_without_data():
137137
"""test without data -> no replacements"""
138138
for func in all_funcs:
139139
assert func(None, "x", "y") == "x: ['x'], y: ['y'], ls: x, w: xyz, label: None"
140-
assert func(None, x="x", y="y") == "x: ['x'], y: ['y'], ls: x, w: xyz, label: None")
140+
assert func(None, x="x", y="y") == "x: ['x'], y: ['y'], ls: x, w: xyz, label: None"
141141
assert func(None, "x", "y", label="") == "x: ['x'], y: ['y'], ls: x, w: xyz, label: "
142142
assert func(None, "x", "y", label="text") == "x: ['x'], y: ['y'], ls: x, w: xyz, label: text"
143143
assert func(None, x="x", y="y", label="") == "x: ['x'], y: ['y'], ls: x, w: xyz, label: "
@@ -216,7 +216,7 @@ def func_varags_replace_all(ax, *args, **kwargs):
216216

217217
# in the first case, we can't get a "y" argument,
218218
# as we don't know the names of the *args
219-
assert func_varags_replace_all(None, x="a", y="b", w="x", data=data) == "x: [1, 2], y: [8, 9], ls: x, w: xyz, label: b")
219+
assert func_varags_replace_all(None, x="a", y="b", w="x", data=data) == "x: [1, 2], y: [8, 9], ls: x, w: xyz, label: b"
220220
assert func_varags_replace_all(None, "a", "b", w="x", label="", data=data) == "x: [1, 2], y: [8, 9], ls: x, w: xyz, label: "
221221
assert func_varags_replace_all(None, "a", "b", w="x", label="text", data=data) == "x: [1, 2], y: [8, 9], ls: x, w: xyz, label: text"
222222
assert func_varags_replace_all(None, x="a", y="b", w="x", label="", data=data) == "x: [1, 2], y: [8, 9], ls: x, w: xyz, label: "

0 commit comments

Comments
 (0)