This is an automated email from the ASF dual-hosted git repository.

yuqi4733 pushed a commit to branch fix_test
in repository https://gitbox.apache.org/repos/asf/gravitino.git

commit 05a7295e309a937984b7c8233c5a951b52778a4f
Author: yuqi <[email protected]>
AuthorDate: Mon Sep 8 11:19:00 2025 +0800

    fix
---
 clients/client-python/tests/integration/test_gvfs_with_s3.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/clients/client-python/tests/integration/test_gvfs_with_s3.py 
b/clients/client-python/tests/integration/test_gvfs_with_s3.py
index 76c56e7c35..a0d4191d07 100644
--- a/clients/client-python/tests/integration/test_gvfs_with_s3.py
+++ b/clients/client-python/tests/integration/test_gvfs_with_s3.py
@@ -186,7 +186,7 @@ class TestGvfsWithS3(TestGvfsWithHDFS):
     def check_mkdir(self, gvfs_dir, actual_dir, gvfs_instance):
         # S3 will not create a directory, so the directory will not exist.
         self.fs.mkdir(actual_dir)
-        self.assertFalse(self.fs.exists(actual_dir))
+        self.assertTrue(self.fs.exists(actual_dir))
         self.assertFalse(gvfs_instance.exists(gvfs_dir))
 
     def check_makedirs(self, gvfs_dir, actual_dir, gvfs_instance):
@@ -278,7 +278,6 @@ class TestGvfsWithS3(TestGvfsWithHDFS):
             **self.conf,
         )
 
-        fs.operations._catalog_cache.clear()
         s3_fs = fs.operations._get_actual_filesystem(mkdir_dir, None)
         config_kwargs = s3_fs.config_kwargs
         self.assertEqual("virtual", 
config_kwargs.get("s3").get("addressing_style"))
@@ -316,8 +315,7 @@ class TestGvfsWithS3(TestGvfsWithHDFS):
 
         # it takes no effect.
         fs.makedirs(mkdir_dir)
-        with self.assertRaises(OSError):
-            self.fs.exists(mkdir_actual_dir)
+        self.fs.exists(mkdir_actual_dir)
 
         self.assertFalse(fs.exists(mkdir_dir))
         self.assertFalse(self.fs.exists("s3://" + new_bucket))

Reply via email to