Skip to content

Commit

Permalink
Apply ruff/refurb rule FURB113
Browse files Browse the repository at this point in the history
FURB113 Use `....extend(...)` instead of repeatedly calling `....append()`
  • Loading branch information
DimitriPapadopoulos committed May 13, 2024
1 parent 0c6c54c commit 22c57d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/v2/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1947,9 +1947,7 @@ def test_attrs_n5_keywords(self):
def test_compressors(self):
compressors = [None, BZ2(), Zlib(), GZip(), MsgPack()]
if LZMA:
compressors.append(LZMA())
compressors.append(LZMA(preset=1))
compressors.append(LZMA(preset=6))
compressors.extend((LZMA(), LZMA(preset=1), LZMA(preset=6)))
for compressor in compressors:
a1 = self.create_array(shape=1000, chunks=100, compressor=compressor)
a1[0:100] = 1
Expand Down

0 comments on commit 22c57d5

Please sign in to comment.