Skip to content

Commit c0c4f6a

Browse files
committed
Simplify a SymmetricalLogLocator test
And also fix a whitespace linting error (E221) in it.
1 parent f6ba2ef commit c0c4f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_ticker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def test_subs(self):
637637
sym = mticker.SymmetricalLogLocator(base=10, linthresh=1, subs=[2.0, 4.0])
638638
sym.create_dummy_axis()
639639
sym.axis.set_view_interval(-10, 10)
640-
assert (sym() == [-20., -40., -2., -4., 0., 2., 4., 20., 40.]).all()
640+
assert_array_equal(sym(), [-20, -40, -2, -4, 0, 2, 4, 20, 40])
641641

642642
def test_extending(self):
643643
sym = mticker.SymmetricalLogLocator(base=10, linthresh=1)

0 commit comments

Comments
 (0)