diff --git a/tests/utils/httpd.py b/tests/utils/httpd.py index a28d370574..4db94adf19 100644 --- a/tests/utils/httpd.py +++ b/tests/utils/httpd.py @@ -20,7 +20,7 @@ def translate_path(self, path): import posixpath # NOTE: `directory` was introduced in 3.7 - if sys.version_info < (3, 7): + if sys.version_info >= (3, 7): return super().translate_path(path) path = path.split("?", 1)[0]