aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/cpp_test/conftest.py
diff options
context:
space:
mode:
authorprettyboy <prettyboy@yandex-team.com>2023-09-22 01:24:48 +0300
committerprettyboy <prettyboy@yandex-team.com>2023-09-22 01:53:30 +0300
commit2848d0b609b460524bfefbdad19508dc120de001 (patch)
treebe27b646e48474b6f449426fbdbcc14f05104fdf /library/python/cpp_test/conftest.py
parent275bbb28224e7dae22959f79299b7ee348098f89 (diff)
downloadydb-2848d0b609b460524bfefbdad19508dc120de001.tar.gz
[library/python] Fix some style tests
см https://a.yandex-team.ru/review/4511498/details?checkId=29700000007055&dialogId=CiCard&filter=resultType%28RT_STYLE_CHECK%29%3BsuiteCategory%28CATEGORY_CHANGED%29&iterationType=FULL&number=1&openedItems=955241967903872625%3ART_STYLE_SUITE_CHECK%2C12143061788616128922%3ART_STYLE_SUITE_CHECK%2C8023375544570871616%3ART_STYLE_SUITE_CHECK%2C10700057700434354061%3ART_STYLE_SUITE_CHECK%2C10919096887128703016%3ART_STYLE_SUITE_CHECK%2C8720280302786645361%3ART_STYLE_SUITE_CHECK%2C16643406941049220442%3ART_STYLE_SUITE_CHECK%2C12501056625690179524%3ART_STYLE_SUITE_CHECK&snippetViewMode=word-wrap&status=STATUS_FAILED
Diffstat (limited to 'library/python/cpp_test/conftest.py')
-rw-r--r--library/python/cpp_test/conftest.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/python/cpp_test/conftest.py b/library/python/cpp_test/conftest.py
index 40576c3aac..5e9a0fbf9a 100644
--- a/library/python/cpp_test/conftest.py
+++ b/library/python/cpp_test/conftest.py
@@ -2,16 +2,16 @@ import difflib
def iter_diff(fr, to):
- for l in difflib.unified_diff(fr.splitlines(), to.splitlines(), fromfile='L', tofile='R'):
- l = l.rstrip('\n')
+ for line in difflib.unified_diff(fr.splitlines(), to.splitlines(), fromfile='L', tofile='R'):
+ line = line.rstrip('\n')
- if l:
- if l[0] == '-':
- l = '[[bad]]' + l + '[[rst]]'
- elif l[0] == '+':
- l = '[[good]]' + l + '[[rst]]'
+ if line:
+ if line[0] == '-':
+ line = '[[bad]]' + line + '[[rst]]'
+ elif line[0] == '+':
+ line = '[[good]]' + line + '[[rst]]'
- yield l
+ yield line
def pytest_assertrepr_compare(op, left, right):