Open mgedmin opened 9 years ago
This happened again: http://winbot.zope.org/builders/z3c.coverage_py_330_win32/builds/7/steps/test/logs/stdio
Failure in test doctest_syntax_highlight_without_enscript (z3c.coverage.tests)
Traceback (most recent call last):
File "c:\buildslave\z3c.coverage_py_330_win32\build\bin\test-script.py", line 24, in <module>
'--test-path', 'c:\\buildslave\\z3c.coverage_py_330_win32\\build\\src',
File "d:\eggs\zope.testrunner-4.5.0-py3.3.egg\zope\testrunner\__init__.py", line 27, in run
failed = run_internal(defaults, args, script_parts=script_parts, cwd=cwd)
File "d:\eggs\zope.testrunner-4.5.0-py3.3.egg\zope\testrunner\__init__.py", line 44, in run_internal
runner.run()
File "d:\eggs\zope.testrunner-4.5.0-py3.3.egg\zope\testrunner\runner.py", line 171, in run
self.run_tests()
File "d:\eggs\zope.testrunner-4.5.0-py3.3.egg\zope\testrunner\runner.py", line 253, in run_tests
self.skipped, self.import_errors)
File "d:\eggs\zope.testrunner-4.5.0-py3.3.egg\zope\testrunner\runner.py", line 425, in run_layer
import_errors)
File "d:\eggs\zope.testrunner-4.5.0-py3.3.egg\zope\testrunner\runner.py", line 345, in run_tests
test(result)
File "c:\Python33_32\lib\unittest\case.py", line 491, in __call__
return self.run(*args, **kwds)
File "c:\Python33_32\lib\unittest\case.py", line 451, in run
result.addFailure(self, exc_info)
File "d:\eggs\zope.testrunner-4.5.0-py3.3.egg\zope\testrunner\runner.py", line 818, in addFailure
exc_info)
File "d:\eggs\zope.testrunner-4.5.0-py3.3.egg\zope\testrunner\formatter.py", line 348, in test_failure
self.print_traceback("Failure in test %s" % test, exc_info)
File "d:\eggs\zope.testrunner-4.5.0-py3.3.egg\zope\testrunner\formatter.py", line 355, in print_traceback
print(self.format_traceback(exc_info))
File "c:\Python33_32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0bf2' in position 652: character maps to <undefined>
A build failed on winbot recently, but we can't see why, because the error reporting failed with a UnicodeError:
I think zope.testrunner should be prepared to deal with non-UTF-8 locales, by using
.encode(sys.stdout.encoding, 'backslashreplace')
or something like that.