diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-12-27 12:59:19 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-12-27 13:12:33 +0300 |
commit | c7a2519eaf60067fe973fc27f3f0c3c7d943bae9 (patch) | |
tree | 0d59847bdc681d374545fdfd0c7989f2f5a98e29 /yql/essentials/tests/common/test_framework/yql_utils.py | |
parent | 27df3d52304f343a3e9e87aa36b014a7a442f94e (diff) | |
download | ydb-c7a2519eaf60067fe973fc27f3f0c3c7d943bae9.tar.gz |
Intermediate changes
commit_hash:170e724b371baded6fdcbc5f6b63da52252c1598
Diffstat (limited to 'yql/essentials/tests/common/test_framework/yql_utils.py')
-rw-r--r-- | yql/essentials/tests/common/test_framework/yql_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yql/essentials/tests/common/test_framework/yql_utils.py b/yql/essentials/tests/common/test_framework/yql_utils.py index f086052207..a504212967 100644 --- a/yql/essentials/tests/common/test_framework/yql_utils.py +++ b/yql/essentials/tests/common/test_framework/yql_utils.py @@ -57,7 +57,7 @@ def do_custom_error_check(res, sql_query): err_string = custom_error.group(1).strip() assert err_string, 'Expected custom error check in test.\nTest error: %s' % res.std_err log('Custom error: ' + err_string) - assert err_string in res.std_err + assert err_string in res.std_err, '"' + err_string + '" is not found' def get_gateway_cfg_suffix(): @@ -1005,7 +1005,7 @@ def stable_result_file(res): for r in res: for data in r[b'Write']: if b'Unordered' in r and b'Data' in data: - data[b'Data'] = sorted(data[b'Data']) + data[b'Data'] = sorted(data[b'Data'], key=cyson.dumps) with open(path, 'wb') as f: writer = cyson.Writer(stream=cyson.OutputStream.from_file(f), format='pretty', mode='node') writer.begin_stream() @@ -1027,7 +1027,7 @@ def stable_table_file(table): if not is_sorted: with open(path, 'rb') as f: r = cyson.Reader(cyson.InputStream.from_file(f), mode='list_fragment') - lst = sorted(list(r.list_fragments())) + lst = sorted(list(r.list_fragments()), key=cyson.dumps) with open(path, 'wb') as f: writer = cyson.Writer(stream=cyson.OutputStream.from_file(f), format='pretty', mode='list_fragment') writer.begin_stream() |