This commit is contained in:
Mark Qvist
2025-11-02 11:50:17 +01:00
parent cf0b1c6237
commit 0896df05b6

View File

@@ -415,7 +415,7 @@ class TestChannel(unittest.TestCase):
nonlocal count, write_finished
count = writer.write(data.encode("utf-8"))
writer.flush()
writer.close()
# writer.close() # TODO: Temporary workaround for https://github.com/python/cpython/issues/138720
write_finished = True
threading.Thread(target=write_thread, name="Write Thread", daemon=True).start()