test_log.SimpleLogTest.test_simple_log fails for non-ASCII people

Adeodato Simó dato at net.com.org.es
Sat Jun 23 02:33:16 BST 2007


Hello.

While running the full testsuite today, I got one test fail, presumably
because of having a non ASCII name (I don't know a way for you to
reproduce, because setting BZR_EMAIL or NAME does not seem to work):

^^^^[log from bzrlib.tests.test_log.SimpleLogTest.test_simple_log]------------
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/adeodato/devel/bzr/bzr.dev/bzrlib/tests/test_log.py", line 115, in test_simple_log
    show_log(b, LongLogFormatter(lf))
  File "/home/adeodato/devel/bzr/bzr.dev/bzrlib/log.py", line 171, in show_log
    start_revision, end_revision, search, limit)
  File "/home/adeodato/devel/bzr/bzr.dev/bzrlib/log.py", line 304, in _show_log
    lf.log_revision(lr)
  File "/home/adeodato/devel/bzr/bzr.dev/bzrlib/log.py", line 534, in log_revision
    print >>to_file, indent+'committer:', revision.rev.committer
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 12: ordinal not in range(128)

This is due to using cStringIO; changing to StringIO in line 113 of
test_log.py solves the issue.

Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
He has never been known to use a word that might send a reader to the
dictionary.
                -- William Faulkner (about Ernest Hemingway)




More information about the bazaar mailing list