[Pkg-bazaar-maint] Bug#949918: breezys autopkg tests fail with python3.8

Matthias Klose doko at debian.org
Mon Jan 27 00:59:58 GMT 2020


Package: src:breezy
Version: 3.0.2-2
Severity: important
Tags: sid bullseye
User: debian-python at lists.debian.org
Usertags: python3.8

[...]
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'
}}}

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/tests/blackbox/test_locale.py",
line 74, in test_log_C
    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.test_xml.TestSerializer.test_pack_revision_5
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: Empty attachments:
  log

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/tests/test_xml.py", line 349, in
test_pack_revision_5
    self.assertEqualDiff(outfile_contents, _expected_rev_v5)
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 1339, in
assertEqualDiff
    + self._ndiff_strings(a, b))
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 1295, in
_ndiff_strings
    if b and not b.endswith('\n'):
TypeError: endswith first arg must be bytes or a tuple of bytes, not str

======================================================================
ERROR: breezy.tests.test_xml.TestSerializer.test_revision_text_v6
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: Empty attachments:
  log

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/tests/test_xml.py", line 452, in
test_revision_text_v6
    self.assertEqualDiff(serialized, _expected_rev_v5)
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 1339, in
assertEqualDiff
    + self._ndiff_strings(a, b))
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 1295, in
_ndiff_strings
    if b and not b.endswith('\n'):
TypeError: endswith first arg must be bytes or a tuple of bytes, not str

======================================================================
ERROR: breezy.tests.test_xml.TestSerializer.test_revision_text_v7
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: Empty attachments:
  log

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/tests/test_xml.py", line 460, in
test_revision_text_v7
    self.assertEqualDiff(serialized, _expected_rev_v5)
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 1339, in
assertEqualDiff
    + self._ndiff_strings(a, b))
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 1295, in
_ndiff_strings
    if b and not b.endswith('\n'):
TypeError: endswith first arg must be bytes or a tuple of bytes, not str

======================================================================
ERROR: breezy.tests.test_xml.TestSerializer.test_revision_text_v8
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: Empty attachments:
  log

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/tests/test_xml.py", line 468, in
test_revision_text_v8
    self.assertEqualDiff(serialized, _expected_rev_v8)
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 1339, in
assertEqualDiff
    + self._ndiff_strings(a, b))
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 1295, in
_ndiff_strings
    if b and not b.endswith('\n'):
TypeError: endswith first arg must be bytes or a tuple of bytes, not str

======================================================================
FAIL: breezy.tests.test_export_pot.TestParseSource.test_strings_multiline
----------------------------------------------------------------------
Traceback (most recent call last):
testtools.testresult.real._StringException: Empty attachments:
  log

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/tests/test_export_pot.py", line
138, in test_strings_multiline
    self.assertEqual(str_lines,
  File "/usr/lib/python3/dist-packages/breezy/tests/__init__.py", line 1315, in
assertEqual
    raise AssertionError("%snot equal:\na = %s\nb = %s\n"
AssertionError: not equal:
a = {'ABC': 6, 'Start\n\nEnd\n': -2}
b = {'ABC': 6, 'Start\n\nEnd\n': 1}

----------------------------------------------------------------------
Ran 30634 tests in 1273.494s

FAILED (failures=1, errors=6, known_failure_count=66)



More information about the Pkg-bazaar-maint mailing list