From 0a6dde206dc381e1b1159cea0d3923e614f1af3d Mon Sep 17 00:00:00 2001 From: yanghua Date: Thu, 14 Nov 2024 14:14:54 +0800 Subject: [PATCH] Add more test cases about fsspec integration --- tosfs/tests/test_fsspec_integration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tosfs/tests/test_fsspec_integration.py b/tosfs/tests/test_fsspec_integration.py index 6a3e189..ea92f7c 100644 --- a/tosfs/tests/test_fsspec_integration.py +++ b/tosfs/tests/test_fsspec_integration.py @@ -93,11 +93,13 @@ def test_customized_class(bucket, temporary_workspace): fsspec.register_implementation( "tos", "tosfs.tests.test_fsspec_integration.MyTosFileSystem", True ) - fsspec.registry["tos"] = "tosfs.tests.test_fsspec_integration.MyTosFileSystem" + fsspec._registry = "tosfs.tests.test_fsspec_integration.MyTosFileSystem" logger.error("----------------") logger.error("tos" in fsspec.registry) logger.error(f"fsspec.registry {fsspec.registry}") + logger.error(known_implementations) + logger.error(known_implementations["tos"]) logger.error(fsspec.get_filesystem_class("tos")) file = f"{random_str()}.txt"