breezy.tests.blackbox.test_locale.TestLocale.test_log_BOGUS fails on python3.8

Bug #1861398 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Breezy
Fix Released
Critical
Unassigned

Bug Description

Reported in bug#949918:

ERROR: breezy.tests.blackbox.test_locale.TestLocale.test_log_BOGUS
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: log: {{{
40.239 creating repository in
file:///tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_BOGUS/work/tree/.bzr/.
40.241 creating branch <breezy.bzr.branch.BzrBranchFormat7 object at
0x7f5083d383a0> in
file:///tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_BOGUS/work/tree/
40.246 trying to create missing lock
'/tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_BOGUS/work/tree/.bzr/checkout/dirstate'
40.246 opening working tree
'/tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_BOGUS/work/tree'
40.254 preparing to commit
    INFO Committing to:
/tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_BOGUS/work/tree/
40.255 Selecting files for commit with filter None
    INFO added a
    INFO Committed revision 1.
40.263 Committed revid b'r1' as revno 1.
40.432 Output of brz ['--no-aliases', '--no-plugins', '-Oprogress_bar=none',
'log', '-q', '--log-format=long', 'tree']:
b''
40.432 Error for brz ['--no-aliases', '--no-plugins', '-Oprogress_bar=none',
'log', '-q', '--log-format=long', 'tree']:
b'brz: warning: unsupported locale setting\n bzr could not set the application
locale.\n Although this should be no problem for bzr itself, it might\n cause
problems with some plugins. To investigate the issue,\n look at the output of
the locale(1p) tool.\nTraceback (most recent call last):\n File "/usr/bin/brz",
line 63, in <module>\n import breezy\n File
"/usr/lib/python3/dist-packages/breezy/__init__.py", line 161, in <module>\n
_fs_enc = _patch_filesystem_default_encoding(sys._brz_default_fs_enc)\n File
"/usr/lib/python3/dist-packages/breezy/__init__.py", line 151, in
_patch_filesystem_default_encoding\n raise RuntimeError("Failed to change the
filesystem default encoding")\nRuntimeError: Failed to change the filesystem
default encoding\n'
}}}

traceback-1: {{{
Traceback (most recent call last):
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_BOGUS/home/.brz.log'
}}}

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/tests/blackbox/test_locale.py",
line 94, in test_log_BOGUS
    out, err = self.run_log_quiet_long(
  File "/usr/lib/python3/dist-packages/breezy/tests/blackbox/test_locale.py",
line 49, in run_log_quiet_long
    return self.run_bzr_subprocess(cmd, env_changes=env_changes)
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 2200, in
run_bzr_subprocess
    return self.finish_bzr_subprocess(process, retcode=supplied_retcode,
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 2357, in
finish_bzr_subprocess
    self.fail('Command brz %r failed with retcode %d != %d'
  File "/usr/lib/python3/dist-packages/unittest2/case.py", line 690, in fail
    raise self.failureException(msg)
AssertionError: Command brz ['--no-aliases', '--no-plugins',
'-Oprogress_bar=none', 'log', '-q', '--log-format=long', 'tree'] failed with
retcode 0 != 1

======================================================================
ERROR: breezy.tests.blackbox.test_locale.TestLocale.test_log_C
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: log: {{{
40.440 creating repository in
file:///tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_C/work/tree/.bzr/.
40.443 creating branch <breezy.bzr.branch.BzrBranchFormat7 object at
0x7f50808afaf0> in
file:///tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_C/work/tree/
40.448 trying to create missing lock
'/tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_C/work/tree/.bzr/checkout/dirstate'
40.449 opening working tree
'/tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_C/work/tree'
40.457 preparing to commit
    INFO Committing to:
/tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_C/work/tree/
40.459 Selecting files for commit with filter None
    INFO added a
    INFO Committed revision 1.
40.468 Committed revid b'r1' as revno 1.
40.469 creating config directory:
'/tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_C/home/breezy'
40.632 Output of brz ['--no-aliases', '--no-plugins', '-Oprogress_bar=none',
'log', '-q', '--log-format=long', 'tree']:
b''
40.633 Error for brz ['--no-aliases', '--no-plugins', '-Oprogress_bar=none',
'log', '-q', '--log-format=long', 'tree']:
b'Traceback (most recent call last):\n File "/usr/bin/brz", line 63, in
<module>\n import breezy\n File
"/usr/lib/python3/dist-packages/breezy/__init__.py", line 161, in <module>\n
_fs_enc = _patch_filesystem_default_encoding(sys._brz_default_fs_enc)\n File
"/usr/lib/python3/dist-packages/breezy/__init__.py", line 151, in
_patch_filesystem_default_encoding\n raise RuntimeError("Failed to change the
filesystem default encoding")\nRuntimeError: Failed to change the filesystem
default encoding\n'
}}}

traceback-1: {{{
Traceback (most recent call last):
FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/testbzr-luw6ra5j.tmp/breezy.tests.blackbox.test_locale.TestLocale.test_log_C/home/.brz.log'
}}}

Jelmer Vernooij (jelmer)
Changed in brz:
status: Triaged → Fix Committed
Jelmer Vernooij (jelmer)
Changed in brz:
status: Fix Committed → Fix Released
milestone: 3.0.3 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.