Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1156357?usp=email )
Change subject: Update cpython bug tracker
......................................................................
Update cpython bug tracker
Change-Id: I3e06d284be75cae4da437361def0c16d88706bcd
---
M pywikibot/data/api/__init__.py
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/data/api/__init__.py b/pywikibot/data/api/__init__.py
index ca065a3..c460530 100644
--- a/pywikibot/data/api/__init__.py
+++ b/pywikibot/data/api/__init__.py
@@ -61,10 +61,10 @@
# Bug: T113120, T228841
# Subclassing necessary to fix bug of the email package in Python 3:
-# see https://bugs.python.org/issue19003
-# see https://bugs.python.org/issue18886
+# see https://github.com/python/cpython/issues/63203
+# see https://github.com/python/cpython/issues/63086
# The following solution might be removed if the bug is fixed for
-# Python versions which are supported by PWB, probably with Python 3.5
+# Python versions which are supported by PWB
class CTEBinaryBytesGenerator(BytesGenerator):
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1156357?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: I3e06d284be75cae4da437361def0c16d88706bcd
Gerrit-Change-Number: 1156357
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1156316?usp=email )
Change subject: tests: fix LinksearchPageGenerator tests
......................................................................
tests: fix LinksearchPageGenerator tests
- use dewiki because of misermode when using namespace parameter.
Test is 11 times faster now.
- use regex for wikipedia.org in test_weblink because the content
can be any url ending with wikipedia.org but the protocol does match.
- remove unittest.skip, the tests might be fixed with T396280 already.
Bug: T396728
Change-Id: Ie9b53c5895c1377b9f24eb65c7299312be758db1
---
M tests/pagegenerators_tests.py
1 file changed, 7 insertions(+), 7 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py
index 2adaba4..9260047 100755
--- a/tests/pagegenerators_tests.py
+++ b/tests/pagegenerators_tests.py
@@ -1724,15 +1724,16 @@
"""Tests for pagegenerators.LinksearchPageGenerator."""
family = 'wikipedia'
- code = 'en'
+ code = 'de'
- @unittest.expectedFailure # T396728
def test_weblink(self) -> None:
"""Test -weblink."""
- cases = (('wikipedia.org', 'http://wikipedia.org'),
- ('en.wikipedia.org', 'http://en.wikipedia.org'),
- ('https://fr.wikipedia.org', 'https://fr.wikipedia.org'),
- ('ftp://*', 'ftp://'))
+ cases = (
+ ('wikipedia.org', 'wikipedia.org'),
+ ('en.wikipedia.org', 'http://en.wikipedia.org'),
+ ('https://fr.wikipedia.org', 'https://fr.wikipedia.org'),
+ ('ftp://*', 'ftp://')
+ )
for search, expected in cases:
with self.subTest(search=search, expected=expected):
@@ -1757,7 +1758,6 @@
protocol='https',
site=self.site)
- @unittest.skip('Needs to be adapted for T14810')
def test_double_same_protocols(self) -> None:
"""Test LinksearchPageGenerator with two same protocols."""
gen = pagegenerators.LinksearchPageGenerator('https://w.wiki',
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1156316?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: Ie9b53c5895c1377b9f24eb65c7299312be758db1
Gerrit-Change-Number: 1156316
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot