UnicodeEncodeError: 'ascii' codec can't encode characters in position 2217-2258: ordinal not in range(128)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Invalid
|
Critical
|
Unassigned |
Bug Description
When using testtools to run unit tests from wikkid wiki (launchpad.
thomi@neil-
Tests running...
=======
FAIL: wikkid.
-------
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec code in run_globals
File "/usr/lib/
program = TestProgram(
File "/usr/lib/
self.runTests()
File "/usr/lib/
self.result = testRunner.
File "/usr/lib/
result.
File "/usr/lib/
self.
File "/usr/lib/
self.
UnicodeEncodeError: 'ascii' codec can't encode characters in position 2217-2258: ordinal not in range(128)
I'm running python 2.6.4.
In case it matters, my LANG environment variable is set to: en_NZ.UTF-8
Changed in testtools: | |
status: | New → Incomplete |
Changed in testtools: | |
assignee: | nobody → Thomi Richards (thomir) |
Changed in testtools: | |
status: | Incomplete → Triaged |
importance: | Undecided → Critical |
assignee: | Thomi Richards (thomir) → Jonathan Lange (jml) |
Changed in testtools: | |
status: | Triaged → In Progress |
Changed in testtools: | |
status: | In Progress → Triaged |
assignee: | Jonathan Lange (jml) → nobody |
tags: | added: unicode |
Interestingly, setting LANG=C fixes this, but the unit test in question still fails. It turns out that the unit test failure was caused by a missing dependency, but it's odd that the missing unit test dependency would give this error.