Last modified: 2014-09-18 17:30:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72977, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70977 - win32 py3 xmlreader test error
win32 py3 xmlreader test error
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
tests (Other open bugs)
core-(2.0)
All Windows XP
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks: pwbpy3
  Show dependency treegraph
 
Reported: 2014-09-17 23:42 UTC by John Mark Vandenberg
Modified: 2014-09-18 17:30 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-09-17 23:42:15 UTC
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>
Comment 1 Gerrit Notification Bot 2014-09-18 10:38:56 UTC
Change 161195 had a related patch set uploaded by XZise:
[FIX] Close opened files

https://gerrit.wikimedia.org/r/161195
Comment 2 Gerrit Notification Bot 2014-09-18 12:41:41 UTC
Change 161195 merged by jenkins-bot:
[FIX] Close opened files and open XMLs in binary mode

https://gerrit.wikimedia.org/r/161195

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links