File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-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
+
5
6
* `#118 <https://github.com/pytest-dev/execnet/pull/118 >`__: Fixed internal leak that should make
6
7
``execnet `` execute remote code in the main thread more often; previously it would sometimes
7
8
spawn a thread to execute a ``remote_exec `` call, even when the caller
10
11
`pytest-dev/pytest-xdist#620 <https://github.com/pytest-dev/pytest-xdist/issues/620 >`__
11
12
for an example).
12
13
14
+ * `#115 <https://github.com/pytest-dev/execnet/pull/115 >`__: Current working directory is now
15
+ restored when calling ``script/socketserver.py ``. The script now also loops by default
16
+ when called from the command-line.
13
17
14
18
1.7.1 (2019-08-28)
15
19
------------------
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ def bind_and_listen(hostport, execmodel):
94
94
95
95
96
96
def startserver (serversock , loop = False ):
97
+ execute_path = os .getcwd ()
97
98
try :
98
99
while 1 :
99
100
try :
@@ -108,6 +109,7 @@ def startserver(serversock, loop=False):
108
109
else :
109
110
excinfo = sys .exc_info ()
110
111
print_ ("got exception" , excinfo [1 ])
112
+ os .chdir (execute_path )
111
113
if not loop :
112
114
break
113
115
finally :
@@ -126,7 +128,8 @@ def startserver(serversock, loop=False):
126
128
127
129
execmodel = get_execmodel ("thread" )
128
130
serversock = bind_and_listen (hostport , execmodel )
129
- startserver (serversock , loop = False )
131
+ startserver (serversock , loop = True )
132
+
130
133
elif __name__ == "__channelexec__" :
131
134
chan = globals ()["channel" ]
132
135
execmodel = chan .gateway .execmodel
You can’t perform that action at this time.
0 commit comments