Skip to content

Commit 9950e89

Browse files
apaszkeQuLogic
andauthored
Update lib/matplotlib/tests/test_cbook.py
Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 5a8a5f4 commit 9950e89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_cbook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ def test_warn_external(recwarn):
596596
def test_array_patch_perimeters():
597597
def check(x, rstride, cstride):
598598
rows, cols = x.shape
599-
row_inds = list(range(0, rows-1, rstride)) + [rows-1]
600-
col_inds = list(range(0, cols-1, cstride)) + [cols-1]
599+
row_inds = [*range(0, rows-1, rstride), rows-1]
600+
col_inds = [*range(0, cols-1, cstride), cols-1]
601601
polys = []
602602
for rs, rs_next in zip(row_inds[:-1], row_inds[1:]):
603603
for cs, cs_next in zip(col_inds[:-1], col_inds[1:]):

0 commit comments

Comments
 (0)