aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder
diff options
context:
space:
mode:
authorkruall <kruall@ydb.tech>2022-09-06 13:55:59 +0300
committerkruall <kruall@ydb.tech>2022-09-06 13:55:59 +0300
commit4d2299379e613653fa653e340e899dee02174f57 (patch)
tree92f586603e9ab73997ef10b4f2b8a77b3c203eb9 /util/folder
parent2af9037faec537692efae1d34591f4f346498b85 (diff)
downloadydb-4d2299379e613653fa653e340e899dee02174f57.tar.gz
Fix GC in kv tablet,
Diffstat (limited to 'util/folder')
-rw-r--r--util/folder/path_ut.pyx7
1 files changed, 4 insertions, 3 deletions
diff --git a/util/folder/path_ut.pyx b/util/folder/path_ut.pyx
index e2537683ee..e3b63f5c4c 100644
--- a/util/folder/path_ut.pyx
+++ b/util/folder/path_ut.pyx
@@ -356,14 +356,15 @@ class TestPath(unittest.TestCase):
def test_real_path(self):
cdef TFsPath path = TFsPath("test_real_path_a")
path.Touch()
- self.assertEquals(path.RealPath().GetPath(), os.path.join(yatest.common.work_path(), "test_real_path_a"))
- self.assertEquals(path.RealLocation().GetPath(), os.path.join(yatest.common.work_path(), "test_real_path_a"))
+ real_work_path = os.path.join(os.path.realpath(yatest.common.work_path()), "test_real_path_a")
+ self.assertEquals(path.RealPath().GetPath(), real_work_path)
+ self.assertEquals(path.RealLocation().GetPath(), real_work_path)
with self.assertRaises(RuntimeError):
path.ReadLink()
def test_cwd(self):
cdef TFsPath path = TFsPath.Cwd()
- self.assertEquals(path.GetPath(), yatest.common.work_path())
+ self.assertEquals(path.GetPath(), os.path.realpath(yatest.common.work_path()))
def test_swap(self):
cdef TFsPath first = TFsPath("first")