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(a)lists.wikimedia.org
Reporter: jayvdb(a)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>
--
You are receiving this mail because:
You are the assignee for the bug.