@@ -140,7 +140,7 @@ def test_struct_of_bools(self, duckdb_cursor, col1_null, col2_null):
140140 )
141141 @null_test_parameters ()
142142 def test_struct_of_dates (self , duckdb_cursor , constructor , expected , col1_null , col2_null ):
143- tuples = [ i for i in range (MAGIC_ARRAY_SIZE )]
143+ tuples = list ( range (MAGIC_ARRAY_SIZE ))
144144
145145 col1 = tuples
146146 if col1_null :
@@ -230,7 +230,7 @@ def test_struct_of_time(self, duckdb_cursor, constructor, unit, expected, col1_n
230230 # TODO: We limit the size because we don't support time values > 24 hours # noqa: TD002, TD003
231231 size = 86400 # The amount of seconds in a day
232232
233- col1 = [ i for i in range (size )]
233+ col1 = list ( range (size ))
234234 if col1_null :
235235 col1 [- 1 ] = None
236236 # "a" in the struct matches the value for col1
@@ -300,7 +300,7 @@ def test_struct_of_interval(self, duckdb_cursor, constructor, expected, converte
300300 def test_struct_of_duration (self , duckdb_cursor , constructor , unit , expected , col1_null , col2_null ):
301301 size = MAGIC_ARRAY_SIZE
302302
303- col1 = [ i for i in range (size )]
303+ col1 = list ( range (size ))
304304 if col1_null :
305305 col1 [- 1 ] = None
306306 # "a" in the struct matches the value for col1
@@ -336,7 +336,7 @@ def test_struct_of_timestamp_tz(self, duckdb_cursor, constructor, unit, expected
336336 size = MAGIC_ARRAY_SIZE
337337
338338 duckdb_cursor .execute ("set timezone='UTC'" )
339- col1 = [ i for i in range (size )]
339+ col1 = list ( range (size ))
340340 if col1_null :
341341 col1 [- 1 ] = None
342342 # "a" in the struct matches the value for col1
@@ -549,7 +549,7 @@ def test_struct_of_list_of_blobs(self, duckdb_cursor, col1_null, col2_null):
549549
550550 @null_test_parameters ()
551551 def test_struct_of_list_of_list (self , duckdb_cursor , col1_null , col2_null ):
552- col1 = [ i for i in range (MAGIC_ARRAY_SIZE )]
552+ col1 = list ( range (MAGIC_ARRAY_SIZE ))
553553 if col1_null :
554554 col1 [- 1 ] = None
555555 # "a" in the struct matches the value for col1
0 commit comments