about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tst/test_listen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tst/test_listen.py b/tst/test_listen.py
index 573330b..b38a26a 100644
--- a/tst/test_listen.py
+++ b/tst/test_listen.py
@@ -146,8 +146,9 @@ def is_root(base_url, url):
     Paths starting with // are excluded because urljoin
     sometimes confuse them with URL scheme.
     """
+    base_path = urlsplit(base_url).path
     url_path = urlsplit(url).path
-    return (urlsplit(urljoin(base_url, url_path)).path == url_path
+    return (urlsplit(urljoin(base_url, url_path)).path == base_path
             and not url_path.startswith('//'))