Skip to content

Commit 094bf4e

Browse files
[PR #10447/343c632d backport][3.11] Fix test when symlink encountered (#10448)
**This is a backport of PR #10447 as merged into master (343c632).** Co-authored-by: Sam Bull <[email protected]>
1 parent cf19b04 commit 094bf4e

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
@@ -358,7 +358,7 @@ def test_add_static_path_resolution(router: any) -> None:
358358
"""Test that static paths are expanded and absolute."""
359359
res = router.add_static("/", "~/..")
360360
directory = str(res.get_info()["directory"])
361-
assert directory == str(pathlib.Path.home().parent)
361+
assert directory == str(pathlib.Path.home().resolve(strict=True).parent)
362362

363363

364364
def test_add_static(router) -> None:

0 commit comments

Comments
 (0)