Skip to content

Commit

Permalink
[PR #10447/343c632d backport][3.12] Fix test when symlink encountered (
Browse files Browse the repository at this point in the history
…#10449)

**This is a backport of PR #10447 as merged into master
(343c632).**

Co-authored-by: Sam Bull <git@sambull.org>
  • Loading branch information
patchback[bot] and Dreamsorcerer authored Feb 11, 2025
1 parent ccbe9ac commit 1ea7559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_urldispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def test_add_static_path_resolution(router: any) -> None:
"""Test that static paths are expanded and absolute."""
res = router.add_static("/", "~/..")
directory = str(res.get_info()["directory"])
assert directory == str(pathlib.Path.home().parent)
assert directory == str(pathlib.Path.home().resolve(strict=True).parent)


def test_add_static(router) -> None:
Expand Down

0 comments on commit 1ea7559

Please sign in to comment.