tests: http: fix typo (#4201)

Fixes #4182
This commit is contained in:
Ruslan Kuprieiev
2020-07-14 14:54:47 +03:00
committed by GitHub
parent 4c9245a3b3
commit c1b04b88fa
+1 -1
View File
@@ -20,7 +20,7 @@ class TestRequestHandler(RangeRequestHandler):
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]