Xqt submitted this change.
[tests] Ignore disabled_tests from coverage
Change-Id: I059dd0eec1a0906ca310ed0b9c19be50eafd67c0
---
M tests/__init__.py
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/tests/__init__.py b/tests/__init__.py
index 1de6877..8f10bc7 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -217,10 +217,9 @@
'Extra test modules (run after library, before scripts):\n {}'
.format(', '.join(extra_test_modules)))
- if disabled_tests:
- unittest_print(
- 'Skipping tests (to run: python -m unittest ...):\n {!r}'
- .format(disabled_tests))
+ if disabled_tests: # pragma: no cover
+ unittest_print(f'Skipping tests (to run: python -m unittest ...):\n'
+ f' {disabled_tests!r}')
modules = (module
for module in chain(library_test_modules,
To view, visit change 913505. To unsubscribe, or for help writing mail filters, visit settings.