summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_multiprocessing.py
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2013-01-13 22:52:13 (GMT)
committerRichard Oudkerk <shibturn@gmail.com>2013-01-13 22:52:13 (GMT)
commit0ee84e04da7883623842d67bb1b1706bfacab309 (patch)
tree28c83010d8a878bdbf55cb12856e5c400e52eca2 /Lib/test/test_multiprocessing.py
parent9e189f0a28ed99a29915dda839b913109a178111 (diff)
parented9e06cb21c4437aa87bb23c6509d3dd3274d0fc (diff)
downloadcpython-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.py11
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')