aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-02-01 19:34:21 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-02-01 19:46:20 +0300
commite01b97234a0321989c44e39b667e0f5745e87050 (patch)
tree87c936b7e9411621230a482c10dcb347dfe6fadc
parentae19158f0353f37721bb129d5bb17ce6e8bad52e (diff)
downloadydb-e01b97234a0321989c44e39b667e0f5745e87050.tar.gz
Intermediate changes
-rw-r--r--library/python/testing/yatest_lib/external.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/python/testing/yatest_lib/external.py b/library/python/testing/yatest_lib/external.py
index 39113230d9..249a37c5f0 100644
--- a/library/python/testing/yatest_lib/external.py
+++ b/library/python/testing/yatest_lib/external.py
@@ -97,6 +97,10 @@ class CanonicalObject(dict):
raise TypeError("Iterating canonical object is not implemented")
+def canonical_path(path):
+ return path.replace('\\', '/')
+
+
class ExternalDataInfo(object):
def __init__(self, data):
@@ -178,6 +182,7 @@ class ExternalDataInfo(object):
attrs["diff_tool_timeout"] = diff_tool_timeout
if size is not None:
attrs["size"] = size
+ path = canonical_path(path)
return cls._serialize(ExternalSchema.File, path, checksum, attrs=attrs)
@classmethod