/
githubmirror
/
zulip
Обзор
Документация
Войти
/
githubmirror
/
zulip
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tools/coveragerc
39 строк
1 KB
Anders Kaseorg
async_utils: Skip NoAutoCreateEventLoopPolicy on Python ≥ 3.14.
23 апр 2026, 08:00
23 апр 2026, 08:00
dd0a8e9
Код
Авторство
О чём код?
[report] # Regexes for lines to exclude from consideration exclude_also = # Re-enable the standard coverage pragma nocoverage # Allow excluding the entire file \A(?ms:.*^# nocoverage$.*)\Z # Don't complain if non-runnable code isn't run: if False: # Don't require coverage for base class NotImplementedErrors raise NotImplementedError # Don't require coverage for test suite AssertionError -- they're usually for clarity raise AssertionError # Don't require coverage for __str__ statements just used for printing def __(repr|str)__[(]self[)] -> .*: # Don't require coverage for errors about unsupported webhook event types raise UnsupportedWebhookEventTypeError # Don't require coverage for abstract methods; they're never called. @abstractmethod # Skipped unit tests @skip [run] data_file=var/.coverage # dynamic_context=test_function, combined with using # html_report(..., show_contexts=True), means the HTML report can detail # which test(s) executed each line with coverage. This has modest # overhead but is very useful for finding existing tests for a code path. dynamic_context=test_function source = analytics/ confirmation/ corporate/ pgroonga/ zerver/ zilencer/ zproject/