aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/cpp_test/conftest.py
diff options
context:
space:
mode:
authorrobot-ydb-importer <robot-ydb-importer@yandex-team.com>2024-11-22 16:22:45 +0300
committerrobot-ydb-importer <robot-ydb-importer@yandex-team.com>2024-11-22 16:37:54 +0300
commite2791d7cb5f6c16065070c3e36286399908c3f56 (patch)
tree3fe608c5d15b25f183591f075dee49bfd6a83dde /library/python/cpp_test/conftest.py
parent145d1a017c8b4a1d1d2d900d87df267373c7479e (diff)
downloadydb-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.py18
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))