diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-10-06 18:40:09 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-10-06 18:40:09 +0300 |
| commit | d7e60b151978bca31b74998398302247056c975b (patch) | |
| tree | 132f55e08778601c4118ca8c3bdbfa3ae9122ee5 /Lib | |
| parent | 4ff2faf2d6666fcc04983ee4574fc8ad815ab1c0 (diff) | |
| parent | 8ae2f0205c3d59aaf560e641d931bb8fd034d8b1 (diff) | |
| download | cpython-git-d7e60b151978bca31b74998398302247056c975b.tar.gz | |
Merge heads
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/test/test_asyncio/test_base_events.py | 5 |
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 156844001d..54b771e8b2 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)) |
