From e01b97234a0321989c44e39b667e0f5745e87050 Mon Sep 17 00:00:00 2001 From: robot-piglet <robot-piglet@yandex-team.com> Date: Thu, 1 Feb 2024 19:34:21 +0300 Subject: Intermediate changes --- library/python/testing/yatest_lib/external.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'library/python/testing/yatest_lib/external.py') 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 -- cgit v1.2.3