Fix broken test on Windows

This commit is contained in:
Pedro Algarvio 2024-05-17 12:22:55 +01:00
parent ae0e579747
commit 8f76636c54

View file

@ -3,6 +3,7 @@
"""
import copy
import os
import pathlib
import shutil
import sys
@ -326,7 +327,7 @@ def test_find_file_symlink_destination_not_in_root(tmp_state_tree):
symlink.symlink_to(str(dirname))
ret = roots.find_file("bar/testfile")
assert ret["path"] == str(symlink / "testfile")
assert ret["rel"] == "bar/testfile"
assert ret["rel"] == f"bar{os.sep}testfile"
def test_serve_file_symlink_destination_not_in_root(tmp_state_tree):