We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a672560 commit 343c632Copy full SHA for 343c632
tests/test_urldispatch.py
@@ -373,7 +373,7 @@ def test_add_static_path_resolution(router: web.UrlDispatcher) -> None:
373
"""Test that static paths are expanded and absolute."""
374
res = router.add_static("/", "~/..")
375
directory = str(res.get_info()["directory"])
376
- assert directory == str(pathlib.Path.home().parent)
+ assert directory == str(pathlib.Path.home().resolve(strict=True).parent)
377
378
379
def test_add_static(router: web.UrlDispatcher) -> None:
0 commit comments