[Pkg-bazaar-maint] Bug#873676: breezy: FTBFS: test_unicode_commit_message_is_filename fails in C locale

Aaron M. Ucko ucko at debian.org
Wed Aug 30 02:47:40 UTC 2017


Source: breezy
Version: 3.0.0~bzr6753-1
Severity: serious
Justification: fails to build from source

Builds of breezy under the traditional C locale (as on the
autobuilders, implicitly) have been failing as detailed below.  Please
try arranging for debian/rules to export LC_ALL=C.UTF-8, which should
be available by default (via libc-bin) these days.

Thanks!

======================================================================
ERROR: breezy.tests.blackbox.test_commit.TestCommit.test_unicode_commit_message_is_filename
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: log: {{{
19.942  run brz: ['init']
19.942  breezy version: 3.0.0dev1
19.943  brz arguments: [u'init']
19.960  creating repository in file:///tmp/testbzr-qu2rYD.tmp/breezy.tests.blackbox.test_commit.TestCommit.test_unicode_commit_message_is_filename/work/.bzr/.
19.965  creating branch <breezy.bzr.branch.BzrBranchFormat7 object at 0xffff79407810> in file:///tmp/testbzr-qu2rYD.tmp/breezy.tests.blackbox.test_commit.TestCommit.test_unicode_commit_message_is_filename/work/
19.983  trying to create missing lock '/tmp/testbzr-qu2rYD.tmp/breezy.tests.blackbox.test_commit.TestCommit.test_unicode_commit_message_is_filename/work/.bzr/checkout/dirstate'
19.984  opening working tree '/tmp/testbzr-qu2rYD.tmp/breezy.tests.blackbox.test_commit.TestCommit.test_unicode_commit_message_is_filename/work'
20.000  opening working tree '/tmp/testbzr-qu2rYD.tmp/breezy.tests.blackbox.test_commit.TestCommit.test_unicode_commit_message_is_filename/work'
20.004  output:
'Created a standalone tree (format: 2a)\n'
20.005  run brz: ['add']
20.005  breezy version: 3.0.0dev1
20.005  brz arguments: [u'add']
20.015  opening working tree '/tmp/testbzr-qu2rYD.tmp/breezy.tests.blackbox.test_commit.TestCommit.test_unicode_commit_message_is_filename/work'
20.027  skip control directory '.bzr'
20.027  creating config directory: '/tmp/testbzr-qu2rYD.tmp/breezy.tests.blackbox.test_commit.TestCommit.test_unicode_commit_message_is_filename/home/breezy'
20.032  output:
'adding "?"\n'
20.032  run brz: ['commit', '-m', u'\u20ac']
20.032  breezy version: 3.0.0dev1
20.032  brz arguments: [u'commit', u'-m', u'\u20ac']
20.044  opening working tree '/tmp/testbzr-qu2rYD.tmp/breezy.tests.blackbox.test_commit.TestCommit.test_unicode_commit_message_is_filename/work'
}}}

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/tests/blackbox/test_commit.py", line 144, in test_unicode_commit_message_is_filename
    out, err = self.run_bzr(['commit', '-m', file_name])
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/tests/__init__.py", line 2021, in run_bzr
    working_dir=working_dir,
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/tests/__init__.py", line 1923, in _run_bzr_autosplit
    encoding=encoding, stdin=stdin, working_dir=working_dir,
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/tests/__init__.py", line 1965, in _run_bzr_core
    args)
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/tests/__init__.py", line 2301, in apply_redirected
    return a_callable(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/commands.py", line 1309, in run_bzr_catch_user_errors
    return run_bzr(argv)
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/commands.py", line 1199, in run_bzr
    ret = run(*run_argv)
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/commands.py", line 755, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/commands.py", line 779, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/builtins.py", line 3616, in run
    ui.ui_factory.show_warning(warning_msg)
  File "/<<PKGBUILDDIR>>/build/lib.linux-aarch64-2.7/breezy/ui/text.py", line 343, in show_warning
    self.stderr.write("bzr: warning: %s\n" % msg)
  File "/usr/lib/python2.7/codecs.py", line 369, in write
    data, consumed = self.encode(object, self.errors)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u20ac' in position 50: ordinal not in range(128)

----------------------------------------------------------------------
Ran 27984 tests in 608.241s

FAILED (errors=1, known_failure_count=64)

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu



More information about the Pkg-bazaar-maint mailing list