Replace some list usages with tuples, sets or iterators

This commit is contained in:
Philipp Wolfer
2022-04-13 08:37:52 +02:00
parent aff4351dca
commit 1853572a99
5 changed files with 9 additions and 8 deletions

View File

@@ -89,11 +89,11 @@ class Testbytes2human(PicardTestCase):
@staticmethod
def _create_testlist():
values = [0, 1]
for n in [1000, 1024]:
for n in (1000, 1024):
p = 1
for e in range(0, 6):
p *= n
for x in [0.1, 0.5, 0.99, 0.9999, 1, 1.5]:
for x in (0.1, 0.5, 0.99, 0.9999, 1, 1.5):
values.append(int(p * x))
list = []
for x in sorted(values):