Skip to content

Commit b931ead

Browse files
more windows hacks
1 parent 081b443 commit b931ead

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
@@ -138,7 +138,15 @@ def send(self, raises: bool = True) -> None:
138138
self._paths: dict[str, int] = {}
139139
self._to_send: dict[Channel, list[str]] = {}
140140

141-
# send modified file to clients
141+
commands: dict[str | None, Callable] = {
142+
None: self._end_of_channel,
143+
"links": self._process_link,
144+
"done": self._done,
145+
"ack": self._ack,
146+
"send": self._send_item,
147+
"list_done": self._list_done,
148+
}
149+
142150
while self._channels:
143151
channel, req = self._receivequeue.get()
144152
if req is None:

testing/test_termination.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def test_termination_on_remote_channel_receive(
7878
gw._group.terminate()
7979
command = ["ps", "-p", str(pid)]
8080
output = subprocess.run(command, capture_output=True, text=True, check=False)
81-
assert str(pid) not in output.stdout, output
81+
print(output.stdout)
82+
assert str(pid) not in output.stdout
8283

8384

8485
def test_close_initiating_remote_no_error(

0 commit comments

Comments
 (0)