gh-84570: Implement Waiting in SendChannel.send() (gh-110565)

We had been faking it (poorly).

We will add timeouts separately.
This commit is contained in:
Eric Snow 2023-10-10 03:35:14 -06:00 committed by GitHub
parent 46462ff929
commit 757cc35b6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 182 additions and 109 deletions

View file

@ -964,8 +964,8 @@ class TestSendRecv(TestBase):
orig = b'spam'
s.send(orig)
t.join()
obj = r.recv()
t.join()
self.assertEqual(obj, orig)
self.assertIsNot(obj, orig)