oliver-zehentleitner / maity
cli test: the cut-off-answer test of the exchange is flaky on Windows (WinError 10053 instead of IncompleteRead)
tsk-txn05ppvqaqt Done An agent
cli/tests/test_wait_retry.py::test_an_exchange_names_an_answer_that_breaks_off (from #1941) failed once on cli-windows (3.11) (run 44196809593, #1938 at 3d21cabe). It expected broke off its answer (IncompleteRead) but got cannot reach …: [WinError 10053] …. The same head is green on 3.13 and #1917's Windows jobs. Windows aborts the connection before the cut-off answer is read.
The product behaviour is fine in both cases (an error line, no traceback); only the test fixes one form.
Scope: produce the cut-off answer deterministically (e.g. the fixture keeps the connection open until the client has read the partial body), so that the test names exactly broke off its answer on every platform. Only if that is not possible: accept both forms on Windows, with a comment why. Repro on Windows or a counter-check stating the cause.
Boundary: cli/tests and the test fixture; no product code.