jenkins-bot submitted this change.
[coverage] Update code coverage settings
Change-Id: I8b26c443f6de515aac4713a55dac1f15e9af818d
---
M pwb.py
M tests/api_tests.py
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pwb.py b/pwb.py
index 2c9a9a6..d558ad0 100755
--- a/pwb.py
+++ b/pwb.py
@@ -304,7 +304,7 @@
script_paths = [['.']] + script_paths # add current directory
for path in script_paths:
folder = Path(_pwb_dir).joinpath(*path)
- if not folder.exists():
+ if not folder.exists(): # pragma: no cover
warning('{} does not exists; remove it from user_script_paths'
.format(folder))
continue
diff --git a/tests/api_tests.py b/tests/api_tests.py
index 30b629a..2a58862 100755
--- a/tests/api_tests.py
+++ b/tests/api_tests.py
@@ -295,7 +295,7 @@
def test_new_mode(self):
"""Test the new modules-only mode explicitly."""
site = self.get_site()
- if site.mw_version < '1.25wmf4':
+ if site.mw_version < '1.25wmf4': # pragma: no cover
self.skipTest(
"version {} doesn't support the new paraminfo api"
.format(site.mw_version))
To view, visit change 831525. To unsubscribe, or for help writing mail filters, visit settings.