=================================== FAILURES =================================== ______________ TestGenerateFamilyFiles.test_attributes_after_run _______________ Unexpected success
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Goal | Xqt | T225591 Make Travis and Appveyor pass again | ||
Resolved | Xqt | T233484 Unexpected success with TestGenerateFamilyFiles.test_attributes_after_run | |||
Open | None | T194138 generate_family_file test fails if lang is different from code |
Event Timeline
Change 538383 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [tests] use subTest to detect failing tests more specific
Change 538383 merged by jenkins-bot:
[pywikibot/core@master] [tests] use subTest to detect failing tests more specific
Change 548768 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [tests] Use allowed_failure with Python 2 behaviour
Change 548768 merged by jenkins-bot:
[pywikibot/core@master] [tests] Use allowed_failure with Python 2 behaviour
Currently throws an error in some Travis environments:
ERROR: test_attributes_after_run (tests.generate_family_files_tests.TestGenerateFamilyFiles) Test FamilyFileGenerator attributes after run(). ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/wikimedia/pywikibot/tests/utils.py", line 93, in wrapper func(*args, **kwargs) File "/home/travis/build/wikimedia/pywikibot/tests/generate_family_files_tests.py", line 65, in test_attributes_after_run site = Site(url=lang['url']) File "/home/travis/build/wikimedia/pywikibot/pywikibot/__init__.py", line 1229, in Site code, fam = _code_fam_from_url(url) File "/home/travis/build/wikimedia/pywikibot/pywikibot/__init__.py", line 1186, in _code_fam_from_url raise SiteDefinitionError("Unknown URL '{0}'.".format(url)) pywikibot.exceptions.SiteDefinitionError: Unknown URL 'https://gd.wikisource.org/wiki/$1'.
I think all of these SiteDefinitionError come from wikisource interwikimap. There are a lot of urls which does not exist but redirects to https://wikisource.org/wiki/Main_Page