Skip to content

Commit 4c7afbf

Browse files
more windows hacks
1 parent dbfb2c2 commit 4c7afbf

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/execnet/rsync.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,15 @@ def send(self, raises=True):
113113
self._paths = {}
114114
self._to_send = {}
115115

116-
# send modified file to clients
116+
commands: dict[str | None, Callable] = {
117+
None: self._end_of_channel,
118+
"links": self._process_link,
119+
"done": self._done,
120+
"ack": self._ack,
121+
"send": self._send_item,
122+
"list_done": self._list_done,
123+
}
124+
117125
while self._channels:
118126
channel, req = self._receivequeue.get()
119127
if req is None:

testing/test_termination.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def test_termination_on_remote_channel_receive(monkeypatch, makegateway):
6767
gw._group.terminate()
6868
command = ["ps", "-p", str(pid)]
6969
output = subprocess.run(command, capture_output=True, text=True)
70-
assert str(pid) not in output.stdout, output
70+
print(output.stdout)
71+
assert str(pid) not in output.stdout
7172

7273

7374
def test_close_initiating_remote_no_error(testdir, anypython):

0 commit comments

Comments
 (0)