diff --git a/backend/tests/ops/test_2203_notify_topic.py b/backend/tests/ops/test_2203_notify_topic.py index df170aac..cad0f108 100644 --- a/backend/tests/ops/test_2203_notify_topic.py +++ b/backend/tests/ops/test_2203_notify_topic.py @@ -69,7 +69,7 @@ def _posix(path: Path) -> str: def _extract_notify(script: Path) -> str: """Вырезать тело notify() из настоящего файла — от заголовка до `}` в нулевой колонке.""" lines = script.read_text(encoding="utf-8").splitlines() - start = next((i for i, l in enumerate(lines) if l.startswith("notify()")), None) + start = next((i for i, ln in enumerate(lines) if ln.startswith("notify()")), None) assert start is not None, f"{script.name}: не нашёл notify() — отправитель переименован" end = next((i for i in range(start + 1, len(lines)) if lines[i] == "}"), None) assert end is not None, f"{script.name}: не нашёл конец notify()"