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,
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/913505
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I059dd0eec1a0906ca310ed0b9c19be50eafd67c0
Gerrit-Change-Number: 913505
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]