Skip to content

Commit 29b913a

Browse files
author
Yi Wei
committed
remove label_expected
1 parent ce1b3cd commit 29b913a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,9 +1159,8 @@ def _no_minor_labels(self, axis):
11591159
fmt = axis.get_minor_formatter()
11601160
minor_tlocs = axis.get_minorticklocs()
11611161
fmt.set_locs(minor_tlocs)
1162-
label_expected = [True] * len(minor_tlocs)
11631162
label_test = [fmt(x) == '' for x in minor_tlocs]
1164-
assert label_test == label_expected
1163+
assert all(label_test)
11651164

11661165
@mpl.style.context('default')
11671166
def test_sublabel(self):

0 commit comments

Comments
 (0)