about summary refs log tree commit diff
path: root/tst/test_listen.py
diff options
context:
space:
mode:
Diffstat (limited to 'tst/test_listen.py')
-rw-r--r--tst/test_listen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tst/test_listen.py b/tst/test_listen.py
index dc4dfd1..07a0b65 100644
--- a/tst/test_listen.py
+++ b/tst/test_listen.py
@@ -242,7 +242,7 @@ async def test_http_200(base_url, certs):
 async def not_found(socket, url):
     """Send GET request for URL and expect a 404 status from socket."""
     async with connect(socket) as (reader, writer):
-        writer.write(f'GET {urlsplit(url).path}\r\n'.encode())
+        writer.write(f'GET {url}\r\n'.encode())
         await writer.drain()
         response = await reader.readuntil(b'\r\n')
         assert response == b'HTTP/1.1 404 Not Found\r\n'