From ff13537494b6b4661cce9892fa33d3ad7fd519a2 Mon Sep 17 00:00:00 2001 From: Robert Xiu Date: Thu, 2 Jun 2022 22:35:18 +0800 Subject: [PATCH] test: fix failing tests due to missing file:// prefix again --- test/test_fsspec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_fsspec.py b/test/test_fsspec.py index de6f61875..2397ead97 100644 --- a/test/test_fsspec.py +++ b/test/test_fsspec.py @@ -69,7 +69,7 @@ def test_fsspec_file_lister_iterdatapipe(self): datapipe = datapipe.list_files_by_fsspec() for path in datapipe: self.assertIn( - path, + path.split("://")[1], {fsspec.implementations.local.make_path_posix(file) for file in self.temp_sub_files}, )