]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
bind our UDP socket
authorBob Halley <halley@dnspython.org>
Sat, 20 Jun 2020 01:17:40 +0000 (18:17 -0700)
committerBob Halley <halley@dnspython.org>
Sat, 20 Jun 2020 01:17:40 +0000 (18:17 -0700)
tests/test_async.py

index c36a8f4069f5df79b45421794b659361784cc5d8..2d387aef43c65367f3f6f99bdedc119b657b7df7 100644 (file)
@@ -346,7 +346,8 @@ class AsyncTests(unittest.TestCase):
     def testUDPReceiveTimeout(self):
         async def arun():
             async with await self.backend.make_socket(socket.AF_INET,
-                                                      socket.SOCK_DGRAM) as s:
+                                                      socket.SOCK_DGRAM, 0,
+                                                      ('127.0.0.1', 0)) as s:
                 try:
                     # for basic coverage
                     await s.getpeername()