We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c93a106 + 12b3cce commit b397288Copy full SHA for b397288
changelog/1071.bugfix
@@ -0,0 +1 @@
1
+Add backward compatibility for deadlock issue with the ``execnet`` new ``main_thread_only`` "execmodel" triggered when pytest-cov accesses rinfo.
src/xdist/workermanage.py
@@ -312,6 +312,11 @@ def shutting_down(self) -> bool:
312
313
def setup(self) -> None:
314
self.log("setting up worker session")
315
+ # Cache rinfo for backward compatibility, since pytest-cov
316
+ # accesses rinfo while the main thread is busy executing our
317
+ # remote_exec call, which triggers a deadlock error for the
318
+ # main_thread_only execmodel if the rinfo has not been cached.
319
+ self.gateway._rinfo()
320
spec = self.gateway.spec
321
args = [str(x) for x in self.config.invocation_params.args or ()]
322
option_dict = {}
0 commit comments