Skip to content

Commit 54cd04c

Browse files
committed
tests: fix windows test path comparision
1 parent 627de46 commit 54cd04c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

upath/tests/implementations/test_s3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from ..utils import OverrideMeta
1414
from ..utils import extends_base
1515
from ..utils import overrides_base
16+
from ..utils import posixify
1617

1718

1819
def silence_botocore_datetime_deprecation(cls):
@@ -204,7 +205,7 @@ def on_collision_rename_file(src, dst):
204205
src.copy_into(dst, on_name_collision=on_collision_rename_file)
205206

206207
# check results
207-
dst_files = sorted(str(x.relative_to(tmp_path)) for x in dst.glob("**/*"))
208+
dst_files = sorted(posixify(x.relative_to(tmp_path)) for x in dst.glob("**/*"))
208209
assert dst_files == [
209210
"src",
210211
"src/common_prefix",

0 commit comments

Comments
 (0)