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 2
2
------------------
3
3
4
4
* 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).
5
12
6
13
7
14
1.7.1 (2019-08-28)
Original file line number Diff line number Diff line change @@ -75,7 +75,10 @@ def _rinfo(self, update=False):
75
75
""" return some sys/env information from remote. """
76
76
if update or not hasattr (self , "_cache_rinfo" ):
77
77
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 ()
79
82
return self ._cache_rinfo
80
83
81
84
def hasreceiver (self ):
You can’t perform that action at this time.
0 commit comments