Bug 1054948 - UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 52852: ordinal not in range(128). r=mdas

This commit is contained in:
Bebe 2014-08-28 00:22:00 -04:00
parent fcb9091d95
commit e2a22232a4

View File

@ -956,4 +956,9 @@ class BaseMarionetteTestRunner(object):
_extract_xml_from_skipped_manifest_test(test)
doc.appendChild(testsuite)
# change default encoding to avoid encoding problem for page source
reload(sys)
sys.setdefaultencoding('utf-8')
return doc.toprettyxml(encoding='utf-8')