From 7ac1774974e94de696c0ab192c8d5323e635a1f8 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 14 Feb 2021 12:23:15 -0800 Subject: [PATCH] Fix for Windows, thanks to @nieuwenhoven in #225 --- tests/test_insert_files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_insert_files.py b/tests/test_insert_files.py index f17f279..266cc6c 100644 --- a/tests/test_insert_files.py +++ b/tests/test_insert_files.py @@ -42,7 +42,7 @@ def test_insert_files(): one, two, three = ( rows_by_path["one.txt"], rows_by_path["two.txt"], - rows_by_path["nested/three.txt"], + rows_by_path[os.path.join("nested", "three.txt")], ) assert { "content": b"This is file one", @@ -64,7 +64,7 @@ def test_insert_files(): "content": b"Three is nested", "md5": "12580f341781f5a5b589164d3cd39523", "name": "three.txt", - "path": "nested/three.txt", + "path": os.path.join("nested", "three.txt"), "sha256": "6dd45aaaaa6b9f96af19363a92c8fca5d34791d3c35c44eb19468a6a862cc8cd", "size": 15, }.items() <= three.items()