Skip to content

Commit 0896df0

Browse files
committed
Workaround for python/cpython#138720
1 parent cf0b1c6 commit 0896df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def write_thread():
415415
nonlocal count, write_finished
416416
count = writer.write(data.encode("utf-8"))
417417
writer.flush()
418-
writer.close()
418+
# writer.close() # TODO: Temporary workaround for https://github.com/python/cpython/issues/138720
419419
write_finished = True
420420
threading.Thread(target=write_thread, name="Write Thread", daemon=True).start()
421421

0 commit comments

Comments
 (0)