Skip to content

Commit e4e6ab0

Browse files
committed
fix test for windows
1 parent fba153e commit e4e6ab0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_store/test_local.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import pathlib
4+
import re
45

56
import numpy as np
67
import pytest
@@ -104,5 +105,7 @@ async def test_move(
104105
assert np.array_equal(array[...], data)
105106

106107
store2 = await LocalStore.open(root=origin)
107-
with pytest.raises(FileExistsError, match=f"Destination root {destination} already exists"):
108+
with pytest.raises(
109+
FileExistsError, match=re.escape(f"Destination root {destination} already exists")
110+
):
108111
await store2.move(destination)

0 commit comments

Comments
 (0)