summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-06-19 18:17:40 -0700
committerBob Halley <halley@dnspython.org>2020-06-19 18:17:40 -0700
commite01572c585607472ede08a590864b2fa029ab610 (patch)
tree4a980e224c4ba59fbb8d338a26138b42861e0110
parent59301e72737d26761a1e9d586a5d16a29ba993c7 (diff)
downloaddnspython-e01572c585607472ede08a590864b2fa029ab610.tar.gz
bind our UDP socket
-rw-r--r--tests/test_async.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_async.py b/tests/test_async.py
index c36a8f4..2d387ae 100644
--- a/tests/test_async.py
+++ b/tests/test_async.py
@@ -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()