Skip to content

Commit 22c57d5

Browse files
Apply ruff/refurb rule FURB113
FURB113 Use `....extend(...)` instead of repeatedly calling `....append()`
1 parent 0c6c54c commit 22c57d5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/v2/test_core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,9 +1947,7 @@ def test_attrs_n5_keywords(self):
19471947
def test_compressors(self):
19481948
compressors = [None, BZ2(), Zlib(), GZip(), MsgPack()]
19491949
if LZMA:
1950-
compressors.append(LZMA())
1951-
compressors.append(LZMA(preset=1))
1952-
compressors.append(LZMA(preset=6))
1950+
compressors.extend((LZMA(), LZMA(preset=1), LZMA(preset=6)))
19531951
for compressor in compressors:
19541952
a1 = self.create_array(shape=1000, chunks=100, compressor=compressor)
19551953
a1[0:100] = 1

0 commit comments

Comments
 (0)