Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/913505 )
Change subject: [tests] Ignore disabled_tests from coverage ......................................................................
[tests] Ignore disabled_tests from coverage
Change-Id: I059dd0eec1a0906ca310ed0b9c19be50eafd67c0 --- M tests/__init__.py 1 file changed, 12 insertions(+), 4 deletions(-)
Approvals: Xqt: Verified; Looks good to me, approved
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,
pywikibot-commits@lists.wikimedia.org