File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 22------------------
33
44* Dropped support for Python 3.4.
5+ * `#118 <https://github.com/pytest-dev/execnet/pull/118 >`__: Fixed internal leak that should make
6+ ``execnet `` execute remote code in the main thread more often; previously it would sometimes
7+ spawn a thread to execute a ``remote_exec `` call, even when the caller
8+ didn't issue multiple ``remote_exec `` calls at the same time. Some frameworks require code
9+ to execute in the main thread, so the previous behavior would break them on occasion (see
10+ `pytest-dev/pytest-xdist#620 <https://github.com/pytest-dev/pytest-xdist/issues/620 >`__
11+ for an example).
512
613
7141.7.1 (2019-08-28)
Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments