diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2013-01-13 22:52:13 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2013-01-13 22:52:13 (GMT) |
commit | 0ee84e04da7883623842d67bb1b1706bfacab309 (patch) | |
tree | 28c83010d8a878bdbf55cb12856e5c400e52eca2 /Lib/test/test_multiprocessing.py | |
parent | 9e189f0a28ed99a29915dda839b913109a178111 (diff) | |
parent | ed9e06cb21c4437aa87bb23c6509d3dd3274d0fc (diff) | |
download | cpython-0ee84e04da7883623842d67bb1b1706bfacab309.zip cpython-0ee84e04da7883623842d67bb1b1706bfacab309.tar.gz cpython-0ee84e04da7883623842d67bb1b1706bfacab309.tar.bz2 |
Issue #16955: Fix the poll() method for multiprocessing's socket
connections on Windows.
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r-- | Lib/test/test_multiprocessing.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index d973b44..9fd8118 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -2358,6 +2358,17 @@ class _TestListenerClient(BaseTestCase): p.join() l.close() + def test_issue16955(self): + for fam in self.connection.families: + l = self.connection.Listener(family=fam) + c = self.connection.Client(l.address) + a = l.accept() + a.send_bytes(b"hello") + self.assertTrue(c.poll(1)) + a.close() + c.close() + l.close() + class _TestPoll(unittest.TestCase): ALLOWED_TYPES = ('processes', 'threads') |