diff --git a/datalad_next/archive_operations/tests/test_tarfile.py b/datalad_next/archive_operations/tests/test_tarfile.py index 9eed8bc15..5f52d8bfb 100644 --- a/datalad_next/archive_operations/tests/test_tarfile.py +++ b/datalad_next/archive_operations/tests/test_tarfile.py @@ -59,13 +59,8 @@ def test_tararchive_iterator(structured_sample_tar_xz: TestArchive): items = list(archive_ops) assert len(items) == structured_sample_tar_xz.item_count for item in items: - item_name = ( - # TODO should not require this conversion - str(PurePosixPath(item.name)) + - '/' if item.type == FileSystemItemType.directory - else str(PurePosixPath(item.name)) - ) - assert item_name in archive_ops + # TODO should be more flexible than just taking str + assert str(PurePosixPath(item.name)) in archive_ops def test_open(structured_sample_tar_xz: TestArchive):