Browse Source

Fix: translate_path() should return a string

default_compile_flags
vector-of-bool 4 years ago
parent
commit
ba26e411df
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/http.py

+ 1
- 1
tests/http.py View File

@@ -25,7 +25,7 @@ class DirectoryServingHTTPRequestHandler(SimpleHTTPRequestHandler):
# Convert the given URL path to a path relative to the directory we are serving
abspath = Path(super().translate_path(path))
relpath = abspath.relative_to(Path.cwd())
return self.dir / relpath
return str(self.dir / relpath)


class ServerInfo(NamedTuple):

Loading…
Cancel
Save