diff options
author | robot-ydb-importer <robot-ydb-importer@yandex-team.com> | 2024-11-22 16:22:45 +0300 |
---|---|---|
committer | robot-ydb-importer <robot-ydb-importer@yandex-team.com> | 2024-11-22 16:37:54 +0300 |
commit | e2791d7cb5f6c16065070c3e36286399908c3f56 (patch) | |
tree | 3fe608c5d15b25f183591f075dee49bfd6a83dde /library/python/cpp_test/conftest.py | |
parent | 145d1a017c8b4a1d1d2d900d87df267373c7479e (diff) | |
download | ydb-e2791d7cb5f6c16065070c3e36286399908c3f56.tar.gz |
YDB Import 625
commit_hash:bbf24592c367fa158fbc53e041fe367374d0750e
Diffstat (limited to 'library/python/cpp_test/conftest.py')
-rw-r--r-- | library/python/cpp_test/conftest.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/library/python/cpp_test/conftest.py b/library/python/cpp_test/conftest.py deleted file mode 100644 index 5e9a0fbf9a..0000000000 --- a/library/python/cpp_test/conftest.py +++ /dev/null @@ -1,18 +0,0 @@ -import difflib - - -def iter_diff(fr, to): - for line in difflib.unified_diff(fr.splitlines(), to.splitlines(), fromfile='L', tofile='R'): - line = line.rstrip('\n') - - if line: - if line[0] == '-': - line = '[[bad]]' + line + '[[rst]]' - elif line[0] == '+': - line = '[[good]]' + line + '[[rst]]' - - yield line - - -def pytest_assertrepr_compare(op, left, right): - return ['failed, show diff'] + list(iter_diff(left, right)) |