From 8f76636c54af675121e4688756b023f5a681e49e Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 17 May 2024 12:22:55 +0100 Subject: [PATCH] Fix broken test on Windows --- tests/pytests/unit/fileserver/test_roots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pytests/unit/fileserver/test_roots.py b/tests/pytests/unit/fileserver/test_roots.py index 59058f34a34..a197b937eec 100644 --- a/tests/pytests/unit/fileserver/test_roots.py +++ b/tests/pytests/unit/fileserver/test_roots.py @@ -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):