diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-02-01 19:34:21 +0300 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-02-09 19:17:00 +0300 |
commit | 73011137e19d9f10ec5a8f632860a7405d7fd95c (patch) | |
tree | e08d67d3a00e4073b0e8f770bf14d075a1211722 /library/python/testing/yatest_lib/external.py | |
parent | 2dff4404f3eed66816cb92c20a7995dd4b113a11 (diff) | |
download | ydb-73011137e19d9f10ec5a8f632860a7405d7fd95c.tar.gz |
Intermediate changes
Diffstat (limited to 'library/python/testing/yatest_lib/external.py')
-rw-r--r-- | library/python/testing/yatest_lib/external.py | 5 |
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 |