From 0e5517d45c8011b0d720826d7e59d5699a6bc5ce Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Thu, 25 Sep 2025 12:04:39 +0100 Subject: [PATCH] Fix another hardcoded linux test --- tests/test_serve_static_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_serve_static_files.py b/tests/test_serve_static_files.py index 9755cc1c..8d381456 100644 --- a/tests/test_serve_static_files.py +++ b/tests/test_serve_static_files.py @@ -60,7 +60,7 @@ def test_add_static_file(filename, allow_cache, mocker): # the wrapped function should return the file response response = wrapped() assert isinstance(response, FileResponse) - assert response.path == "bar/" + filename + assert response.path == os.path.join("bar", filename) # The file response headers always have some standard data, and if the file is # allowed to be cached it should also have the no_cache data for key, value in serve_static_files.NO_CACHE_HEADERS.items():