We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d67b30 commit 0c87403Copy full SHA for 0c87403
tests/test_unix.py
@@ -507,9 +507,12 @@ def prog(sock):
507
sock.close()
508
509
except Exception as ex:
510
- self.loop.call_soon_threadsafe(fut.set_exception, ex)
+ self.loop.call_soon_threadsafe(
511
+ lambda ex=ex:
512
+ (fut.cancelled() or fut.set_exception(ex)))
513
else:
- self.loop.call_soon_threadsafe(fut.set_result, None)
514
515
+ lambda: (fut.cancelled() or fut.set_result(None)))
516
517
client = self.unix_client(prog)
518
client.start()
0 commit comments