mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-31 13:48:01 +00:00
Replace some list usages with tuples, sets or iterators
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user