Skip to content

Commit 343c632

Browse files
Fix test when symlink encountered (#10447)
1 parent a672560 commit 343c632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_urldispatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def test_add_static_path_resolution(router: web.UrlDispatcher) -> None:
373373
"""Test that static paths are expanded and absolute."""
374374
res = router.add_static("/", "~/..")
375375
directory = str(res.get_info()["directory"])
376-
assert directory == str(pathlib.Path.home().parent)
376+
assert directory == str(pathlib.Path.home().resolve(strict=True).parent)
377377

378378

379379
def test_add_static(router: web.UrlDispatcher) -> None:

0 commit comments

Comments
 (0)