Skip to content

Commit 84ffea8

Browse files
committed
waitclose in _rinfo() call
should improve pytest-dev/pytest-xdist#620
1 parent 0785570 commit 84ffea8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

execnet/gateway.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ def _rinfo(self, update=False):
7575
""" return some sys/env information from remote. """
7676
if update or not hasattr(self, "_cache_rinfo"):
7777
ch = self.remote_exec(rinfo_source)
78-
self._cache_rinfo = RInfo(ch.receive())
78+
try:
79+
self._cache_rinfo = RInfo(ch.receive())
80+
finally:
81+
ch.waitclose()
7982
return self._cache_rinfo
8083

8184
def hasreceiver(self):

0 commit comments

Comments
 (0)