Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/766228 )
Change subject: [tests] Do not cover NotImplementedError ......................................................................
[tests] Do not cover NotImplementedError
Change-Id: I2438e2c17b2cbe7ca0c3ef53251aa61220db06f2 --- M .coveragerc M pywikibot/i18n.py 2 files changed, 3 insertions(+), 3 deletions(-)
Approvals: Xqt: Verified; Looks good to me, approved
diff --git a/.coveragerc b/.coveragerc index 8d0e536..aa2a510 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,5 +2,5 @@ exclude_lines = # Have to re-enable the standard pragma pragma: no cover - + raise NotImplementedError if .PYWIKIBOT_TEST_.*. in os.environ: diff --git a/pywikibot/i18n.py b/pywikibot/i18n.py index 4a34ebb..c41fb75 100644 --- a/pywikibot/i18n.py +++ b/pywikibot/i18n.py @@ -539,10 +539,10 @@ return self.source
def __iter__(self) -> Iterator[int]: - raise NotImplementedError # pragma: no cover + raise NotImplementedError
def __len__(self) -> int: - raise NotImplementedError # pragma: no cover + raise NotImplementedError
DEFAULT_FALLBACK = ('_default', )
pywikibot-commits@lists.wikimedia.org