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

Change subject: Revert "tests: Skip wikiblame tests due to T381262"
......................................................................

Revert "tests: Skip wikiblame tests due to T381262"

This reverts commit f83ab2850b218c743bc7059e352275d89da357eb.

Reason for revert: solved upstream

Bug: T381262
Change-Id: I74ec5d56f20521751123118133cf6db505790ff5
---
M pywikibot/page/_toolforge.py
M tests/wikiblame_tests.py
2 files changed, 6 insertions(+), 8 deletions(-)

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




diff --git a/pywikibot/page/_toolforge.py b/pywikibot/page/_toolforge.py
index cfe2f9e..19a2782 100644
--- a/pywikibot/page/_toolforge.py
+++ b/pywikibot/page/_toolforge.py
@@ -74,9 +74,9 @@
         >>> import pywikibot
         >>> site = pywikibot.Site('wikipedia:eu')
         >>> page = pywikibot.Page(site, 'Python (informatika)')
-        >>> auth = page.main_authors()  # doctest: +SKIP
-        >>> auth.most_common(1)  # doctest: +SKIP
-        [('Ksarasola', 82)]  # doctest: +SKIP
+        >>> auth = page.main_authors()
+        >>> auth.most_common(1)
+        [('Ksarasola', 82)]

         .. important:: Only implemented for main namespace pages and
            only wikipedias of :attr:`WIKIBLAME_CODES` are supported.
@@ -126,9 +126,9 @@
         >>> import pywikibot
         >>> site = pywikibot.Site('wikipedia:en')
         >>> page = pywikibot.Page(site, 'Pywikibot')
-        >>> auth = page.authorship()  # doctest: +SKIP
-        >>> auth  # doctest: +SKIP
-        {'1234qwer1234qwer4': (68, 100.0)}  # doctest: +SKIP
+        >>> auth = page.authorship()
+        >>> auth
+        {'1234qwer1234qwer4': (68, 100.0)}

         .. important:: Only implemented for main namespace pages and
            only wikipedias of :attr:`WIKIBLAME_CODES` are supported.
diff --git a/tests/wikiblame_tests.py b/tests/wikiblame_tests.py
index 306cb5d..0d5057c 100644
--- a/tests/wikiblame_tests.py
+++ b/tests/wikiblame_tests.py
@@ -36,7 +36,6 @@
             page.authorship()

     @require_modules('wikitextparser')
-    @unittest.expectedFailure  # T381262
     def test_main_authors(self):
         """Test main_authors() method."""
         page = pywikibot.Page(self.site, 'Python (programmeertaal)')
@@ -49,7 +48,6 @@
         self.assertIsInstance(values[1], float)

     @require_modules('wikitextparser')
-    @unittest.expectedFailure  # T381262
     def test_restrictions(self):
         """Test main_authors() method with restrictions."""
         page = pywikibot.Page(pywikibot.Site('wikipedia:en'), 'Python')

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1099780?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: I74ec5d56f20521751123118133cf6db505790ff5
Gerrit-Change-Number: 1099780
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <i...@gno.de>
Gerrit-Reviewer: Xqt <i...@gno.de>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org
To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org

Reply via email to