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

Skip to content

Commit 5adc3f7

Browse files
Update lib/matplotlib/tests/test_ticker.py
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent 54e673c commit 5adc3f7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/matplotlib/tests/test_ticker.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,7 @@ def test_tick_values_not_exceeding_vmax(self):
611611
"""
612612
# Test case where offset=0 could cause vmax to be included incorrectly
613613
index = mticker.IndexLocator(base=1, offset=0)
614-
ticks = index.tick_values(0, 4)
615-
assert all(t <= 4 for t in ticks)
616-
np.testing.assert_array_equal(ticks, [0, 1, 2, 3, 4])
614+
assert_array_equal(index.tick_values(0, 4), [0, 1, 2, 3, 4])
617615

618616
# Test case with fractional offset
619617
index = mticker.IndexLocator(base=1, offset=0.5)

0 commit comments

Comments
 (0)