https://bugzilla.wikimedia.org/show_bug.cgi?id=70977
Bug ID: 70977 Summary: win32 py2 xmlreader test error Product: Pywikibot Version: core (2.0) Hardware: All OS: Windows XP Status: NEW Severity: normal Priority: Unprioritized Component: tests Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
This only occurs on win32 py3 (not py2)
====================================================================== ERROR: test_XmlDumpRedirect (tests.xmlreader_tests.XmlReaderTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\pywiki\core\tests\xmlreader_tests.py", line 51, in test_XmlDumpRedirect "article-pyrus.xml")).parse()] File "c:\pywiki\core\tests\xmlreader_tests.py", line 49, in <listcomp> pages = [r for r in File "c:\pywiki\core\pywikibot\xmlreader.py", line 129, in parse for event, elem in context: File "c:\Python34\lib\xml\etree\ElementTree.py", line 1302, in __next__ data = self._file.read(16 * 1024) File "c:\Python34\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 3344: character maps to <undefined>
https://bugzilla.wikimedia.org/show_bug.cgi?id=70977
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|win32 py2 xmlreader test |win32 py3 xmlreader test |error |error
https://bugzilla.wikimedia.org/show_bug.cgi?id=70977
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |58053
https://bugzilla.wikimedia.org/show_bug.cgi?id=70977
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 161195 had a related patch set uploaded by XZise: [FIX] Close opened files
https://gerrit.wikimedia.org/r/161195
https://bugzilla.wikimedia.org/show_bug.cgi?id=70977
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=70977
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 161195 merged by jenkins-bot: [FIX] Close opened files and open XMLs in binary mode
https://gerrit.wikimedia.org/r/161195
https://bugzilla.wikimedia.org/show_bug.cgi?id=70977
Fabian CommodoreFabianus@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |CommodoreFabianus@gmx.de Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org