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

# Convert the given URL path to a path relative to the directory we are serving # Convert the given URL path to a path relative to the directory we are serving
abspath = Path(super().translate_path(path)) abspath = Path(super().translate_path(path))
relpath = abspath.relative_to(Path.cwd()) relpath = abspath.relative_to(Path.cwd())
return self.dir / relpath
return str(self.dir / relpath)




class ServerInfo(NamedTuple): class ServerInfo(NamedTuple):

Loading…
Cancel
Save