Skip to content

Commit 5824f22

Browse files
committed
clean up
1 parent 6ca0790 commit 5824f22

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/xdist/workermanage.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from pathlib import Path
99
import re
1010
import sys
11-
import time
1211
from typing import Any
1312
from typing import Callable
1413
from typing import Literal
@@ -96,14 +95,11 @@ def setup_nodes(
9695
) -> list[WorkerController]:
9796
self.config.hook.pytest_xdist_setupnodes(config=self.config, specs=self.specs)
9897
self.trace("setting up nodes")
99-
t = time.monotonic()
10098
with ThreadPoolExecutor(max_workers=len(self.specs)) as executor:
10199
futs = [
102100
executor.submit(self.setup_node, spec, putevent) for spec in self.specs
103101
]
104-
ret = [f.result() for f in futs]
105-
print("setup_nodes took %.3f seconds" % (time.monotonic() - t))
106-
return ret
102+
return [f.result() for f in futs]
107103

108104
def setup_node(
109105
self,

0 commit comments

Comments
 (0)