summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2015-10-06 15:24:44 (GMT)
committerGuido van Rossum <guido@python.org>2015-10-06 15:24:44 (GMT)
commit609081186d4dbbd9ed8bf7a294973e59488f964a (patch)
treef8a3972b70b3301096aef395b707bccae6a48372 /Lib/test/test_asyncio
parent72181b2f5385cc709543250b37d077adf3d08043 (diff)
parent36bbd0f239255b96aab8868ae045a66e5c837d48 (diff)
downloadcpython-609081186d4dbbd9ed8bf7a294973e59488f964a.zip
cpython-609081186d4dbbd9ed8bf7a294973e59488f964a.tar.gz
cpython-609081186d4dbbd9ed8bf7a294973e59488f964a.tar.bz2
Issue #23972: Fix tests for Windows and Debian. (Merge 3.4->3.5)
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index 1568440..54b771e 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -1215,6 +1215,7 @@ class BaseEventLoopWithSelectorTests(test_utils.TestCase):
def test_create_datagram_endpoint_sock(self):
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
+ sock.bind(('127.0.0.1', 0))
fut = self.loop.create_datagram_endpoint(
lambda: MyDatagramProto(create_future=True, loop=self.loop),
sock=sock)
@@ -1307,10 +1308,6 @@ class BaseEventLoopWithSelectorTests(test_utils.TestCase):
self.assertTrue(
sock.getsockopt(
socket.SOL_SOCKET, socket.SO_REUSEPORT))
- else:
- self.assertFalse(
- sock.getsockopt(
- socket.SOL_SOCKET, socket.SO_REUSEPORT))
self.assertTrue(
sock.getsockopt(
socket.SOL_SOCKET, socket.SO_BROADCAST))