aboutsummaryrefslogtreecommitdiffstats
path: root/library/python
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.com>2023-09-21 00:12:35 +0300
committershadchin <shadchin@yandex-team.com>2023-09-21 00:25:37 +0300
commitb4576b9ebd54160745a192644d131a5f122dea98 (patch)
tree4290c2b57fe13457aee24bacdeffb1a1b1eee4cc /library/python
parent7708ed7edf0ea30a745e75090add70c029b1ebf5 (diff)
downloadydb-b4576b9ebd54160745a192644d131a5f122dea98.tar.gz
Split py on py2/py3
Diffstat (limited to 'library/python')
-rw-r--r--library/python/resource/ut/test_simple.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/python/resource/ut/test_simple.py b/library/python/resource/ut/test_simple.py
index 28c68366cf..e969d0f867 100644
--- a/library/python/resource/ut/test_simple.py
+++ b/library/python/resource/ut/test_simple.py
@@ -24,8 +24,10 @@ def test_iter():
def test_resfs_files():
- assert "contrib/python/py/.dist-info/METADATA" in set(rs.resfs_files())
+ metadata_path = "contrib/python/py/py{}/.dist-info/METADATA".format("2" if six.PY2 else "3")
+ assert metadata_path in set(rs.resfs_files())
def test_resfs_read():
- assert "Metadata-Version" in rs.resfs_read("contrib/python/py/.dist-info/METADATA").decode("utf-8")
+ metadata_path = "contrib/python/py/py{}/.dist-info/METADATA".format("2" if six.PY2 else "3")
+ assert "Metadata-Version" in rs.resfs_read(metadata_path).decode("utf-8")