File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ class TestManager(mp_managers.SyncManager):
478
478
f"PortRange { port_range } cannot satisfy requirement of { max_test_ports } ports in test { test_with_most_ports .name } "
479
479
)
480
480
481
- self ._ports = self .list ([ p for p in range (port_range_lo , port_range_hi + 1 )] )
481
+ self ._ports = self .list (list ( range (port_range_lo , port_range_hi + 1 )) )
482
482
483
483
threads = []
484
484
@@ -1378,7 +1378,7 @@ class Test:
1378
1378
1379
1379
def finish (self ):
1380
1380
if self .bound_ports :
1381
- self .mgr .returnPorts ([ p for p in self .bound_ports ] )
1381
+ self .mgr .returnPorts (list ( self .bound_ports ) )
1382
1382
1383
1383
self .bound_ports = []
1384
1384
@@ -2543,7 +2543,7 @@ def mergeTestParts(tests):
2543
2543
except KeyError :
2544
2544
out [t .name ] = t
2545
2545
2546
- return sorted ([ t for t in out .values ()] , key = key )
2546
+ return sorted (out .values (), key = key )
2547
2547
2548
2548
2549
2549
# Read the given test file and instantiate one or more tests from it.
@@ -2576,7 +2576,7 @@ def readTestFile(filename):
2576
2576
state = "test"
2577
2577
2578
2578
try :
2579
- lines = [ line for line in input ]
2579
+ lines = list ( input )
2580
2580
except UnicodeDecodeError as e :
2581
2581
# This error is caused by either a test file with an invalid UTF-8 byte
2582
2582
# sequence, or if python makes the wrong assumption about the encoding
Original file line number Diff line number Diff line change @@ -73,4 +73,4 @@ per-file-ignores = """
73
73
"""
74
74
75
75
[tool .ruff .lint ]
76
- select = [" UP" ]
76
+ select = [" C4 " , " UP" ]
You can’t perform that action at this time.
0 commit comments