Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1199754?usp=email )

Change subject: coverage: Exclude alllinks method from coverage
......................................................................

coverage: Exclude alllinks method from coverage

Change-Id: Ic34505437dc7dfb13eea690f1b9afdc5dd36503c
---
M pywikibot/site/_generators.py
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Verified; Looks good to me, approved




diff --git a/pywikibot/site/_generators.py b/pywikibot/site/_generators.py
index 4da3dcc..dc4cf6e 100644
--- a/pywikibot/site/_generators.py
+++ b/pywikibot/site/_generators.py
@@ -1072,6 +1072,7 @@
             inappropriate type such as bool, or an iterable with more
             than one namespace
         """
+        # no cover: start
         if unique and fromids:
             raise Error('alllinks: unique and fromids cannot both be True.')
         algen = self._generator(api.ListGenerator, type_arg='alllinks',
@@ -1103,6 +1104,7 @@
             if fromids:
                 p._fromid = link['fromid']  # type: ignore[attr-defined]
             yield p
+        # no cover: stop

     def allcategories(
         self,

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1199754?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ic34505437dc7dfb13eea690f1b9afdc5dd36503c
Gerrit-Change-Number: 1199754
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to