An encoded section title like Talk_.28discussion.29_pages is not found by this method and textlib_tests.TestSectionFunctions.testNonAlphabeticalCharactersInSection fails.
Therefore that test is marked as expectedFailure but the method should be improved thus the decorator can be removed then.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
textlib: does_text_contain_section should accept anchorencoded values | pywikibot/core | master | +72 -12 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T152961 Improve tests suite | |||
Open | None | T129368 Usages of unittest.expectedFailure or unittest.skip should be solved (goal) | |||
Open | None | T133276 textlib.does_text_contain_section fails for encoded section title |
Event Timeline
Comment Actions
Change 284684 had a related patch set uploaded (by Xqt):
Separate test until T133276 is solved
Comment Actions
Change 286296 had a related patch set uploaded (by Dalba):
textlib: does_text_contain_section should accept anchorencoded values
Comment Actions
Note that with T152540: Migrate to HTML5 section ids being resolved for MW 1.30, the algorithm for section title encoding has changed on Wikimedia projects. Although, according Manual:$wgFragmentMode the legacy method is still the default for new MediaWiki installations.
Related: