breaks with newer versions of configobj

Bug #1366684 reported by Jelmer Vernooij
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Undecided
Unassigned
bzr (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

newer versions of python-configobj break bzr:

======================================================================
ERROR: bzrlib.tests.blackbox.test_whoami.TestWhoami.test_whoami_ascii
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: log: {{{
70.170 creating repository in file:///tmp/testbzr-dqCJeF.tmp/bzrlib.tests.blackbox.test_whoami.TestWhoami.test_whoami_ascii/work/.bzr/.
70.172 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x7fab90ed5390> in file:///tmp/testbzr-dqCJeF.tmp/bzrlib.tests.blackbox.test_whoami.TestWhoami.test_whoami_ascii/work/
70.180 trying to create missing lock '/tmp/testbzr-dqCJeF.tmp/bzrlib.tests.blackbox.test_whoami.TestWhoami.test_whoami_ascii/work/.bzr/checkout/dirstate'
70.181 opening working tree '/tmp/testbzr-dqCJeF.tmp/bzrlib.tests.blackbox.test_whoami.TestWhoami.test_whoami_ascii/work'
70.188 run bzr: ('whoami',)
70.188 bazaar version: 2.7.0dev1
70.188 bzr arguments: [u'whoami']
70.190 encoding stdout as sys.stdout encoding 'ascii'
}}}

Traceback (most recent call last):
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/blackbox/test_whoami.py", line 88, in test_whoami_ascii
    encoding='ascii')
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/blackbox/test_whoami.py", line 32, in assertWhoAmI
    out, err = self.run_bzr(('whoami',) + cmd_args, **kwargs)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 2085, in run_bzr
    working_dir=working_dir,
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 1983, in _run_bzr_autosplit
    encoding=encoding, stdin=stdin, working_dir=working_dir,
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 2018, in _run_bzr_core
    args)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 2365, in apply_redirected
    return a_callable(*args, **kwargs)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/commands.py", line 1231, in run_bzr_catch_user_errors
    return run_bzr(argv)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/commands.py", line 1138, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/builtins.py", line 3874, in run
    self.outf.write(identity + '\n')
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/ui/text.py", line 687, in write
    self.wrapped_stream.write(to_write)
  File "/usr/lib/python2.7/codecs.py", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 16: ordinal not in range(128)

======================================================================
ERROR: bzrlib.tests.commands.test_pull.TestPull.test_pull_with_bound_branch
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: lost connection during test 'bzrlib.tests.commands.test_pull.TestPull.test_pull_with_bound_branch'
======================================================================
ERROR: bzrlib.tests.commands.test_pull.TestPull.test_pull
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: lost connection during test 'bzrlib.tests.commands.test_pull.TestPull.test_pull'
======================================================================
ERROR: bzrlib.tests.commands.test_merge.TestMerge.test_merge
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: lost connection during test 'bzrlib.tests.commands.test_merge.TestMerge.test_merge'
======================================================================
ERROR: bzrlib.tests.per_transport.TransportTests.test_get_directory_read_gives_ReadError(SFTPTransport,SFTPHomeDirServer)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: lost connection during test 'bzrlib.tests.per_transport.TransportTests.test_get_directory_read_gives_ReadError(SFTPTransport,SFTPHomeDirServer)'
======================================================================
FAIL: bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: log: {{{
4.338 creating repository in file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/.
4.341 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x7fab97d6a390> in file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/
4.351 trying to create missing lock '/tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/checkout/dirstate'
4.352 opening working tree '/tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work'
4.369 preparing to commit
    INFO Committing to: /tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/
4.372 Selecting files for commit with filter None
    INFO added foo¶
    INFO Committed revision 1.
4.387 Committed revid <email address hidden> as revno 1.
4.389 creating config directory: '/tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/home/.bazaar'
}}}

traceback-1: {{{
Traceback (most recent call last):
AssertionError: Different number of acquired and released or broken locks.
acquired=[LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/branch-lock, 2f5pttztm3s55f9kbhoz), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/repository/lock, w0eu9d44po26sdpugwnv), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/branch/lock, 7czo9rgpxy4kbpwmv205), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/checkout/lock, 20irx5auk66bvltmwds1), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/checkout/lock, 4c7slma7lvb7ylgh5yda), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/branch/lock, 8i5ahitl40aibijju1zw), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/checkout/lock, mb1nk2r52soqg3kjg000), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/repository/lock, 3p2m80chakglpsr9uirq), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/home/.bazaar/lock, jic9mf5jda75fukshulr)]
released=[LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/branch-lock, 2f5pttztm3s55f9kbhoz), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/repository/lock, w0eu9d44po26sdpugwnv), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/branch/lock, 7czo9rgpxy4kbpwmv205), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/checkout/lock, 20irx5auk66bvltmwds1), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/checkout/lock, 4c7slma7lvb7ylgh5yda), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/repository/lock, 3p2m80chakglpsr9uirq), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/checkout/lock, mb1nk2r52soqg3kjg000), LockResult(file:///tmp/testbzr-dxdN9K.tmp/bzrlib.tests.blackbox.test_alias.TestAlias.test_unicode_alias/work/.bzr/branch/lock, 8i5ahitl40aibijju1zw)]
broken=[]
}}}

Traceback (most recent call last):
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/blackbox/test_alias.py", line 63, in test_unicode_alias
    u'[ALIASES]\nust=st %s\n' % (file_name,), save=True)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 1053, in from_string
    conf._create_from_string(str_or_unicode, save)
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 1004, in _create_from_string
    self._write_config_file()
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 1031, in _write_config_file
    super(LockableConfig, self)._write_config_file()
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 952, in _write_config_file
    self._get_parser().write(atomic_file)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 2070, in write
    out.extend(self.write(section=this_entry))
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 2076, in write
    comment))
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1993, in _write_line
    self._decode_element(comment))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 6: ordinal not in range(128)

======================================================================
FAIL: bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks(BzrBranchFormat7)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: log: {{{
75.523 creating repository in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks%28BzrBranchFormat7%29/work/bzr.dev/.bzr/.
75.526 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x7fab9bdb1950> in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks%28BzrBranchFormat7%29/work/bzr.dev/
}}}

Traceback (most recent call last):
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/per_branch/test_branch.py", line 307, in test_nicks
    self.assertEqual(branch.nick, u"\u1234")
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 1360, in assertEqual
    pprint.pformat(a), pprint.pformat(b)))
AssertionError: not equal:
a = '\xe1\x88\xb4'
b = u'\u1234'

======================================================================
FAIL: bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks(BzrBranchFormat4)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: log: {{{
75.541 creating repository in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks%28BzrBranchFormat4%29/work/bzr.dev/.bzr/.
75.542 creating branch <bzrlib.plugins.weave_fmt.branch.BzrBranchFormat4 object at 0x7fab8a698e50> in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks%28BzrBranchFormat4%29/work/bzr.dev/
75.544 opening working tree '/tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks(BzrBranchFormat4)/work/bzr.dev'
75.544 failed to open /tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks(BzrBranchFormat4)/work/bzr.dev/.bzr/stat-cache: [Errno 2] No such file or directory: u'/tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks(BzrBranchFormat4)/work/bzr.dev/.bzr/stat-cache'
75.544 write hc
75.546 creating branch <bzrlib.plugins.weave_fmt.branch.BzrBranchFormat4 object at 0x7fab89c4c590> in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks%28BzrBranchFormat4%29/work/bzr.dev/
}}}

traceback-1: {{{
Traceback (most recent call last):
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/per_branch/test_branch.py", line 307, in test_nicks
    self.assertEqual(branch.nick, u"\u1234")
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 1360, in assertEqual
    pprint.pformat(a), pprint.pformat(b)))
AssertionError: not equal:
a = '\xe1\x88\xb4'
b = u'\u1234'
}}}

======================================================================
FAIL: bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks_bzr(BzrBranchFormat7)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: log: {{{
75.555 creating repository in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks_bzr%28BzrBranchFormat7%29/work/bzr.dev/.bzr/.
75.557 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x7fab9bdb1950> in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks_bzr%28BzrBranchFormat7%29/work/bzr.dev/
}}}

Traceback (most recent call last):
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/per_branch/test_branch.py", line 289, in test_nicks_bzr
    self.assertEqual(branch.nick, u"\u1234")
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 1360, in assertEqual
    pprint.pformat(a), pprint.pformat(b)))
AssertionError: not equal:
a = '\xe1\x88\xb4'
b = u'\u1234'

======================================================================
FAIL: bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks_bzr(BzrBranchFormat4)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: log: {{{
75.581 creating repository in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks_bzr%28BzrBranchFormat4%29/work/bzr.dev/.bzr/.
75.582 creating branch <bzrlib.plugins.weave_fmt.branch.BzrBranchFormat4 object at 0x7fab8a4cab90> in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks_bzr%28BzrBranchFormat4%29/work/bzr.dev/
75.583 opening working tree '/tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks_bzr(BzrBranchFormat4)/work/bzr.dev'
75.583 failed to open /tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks_bzr(BzrBranchFormat4)/work/bzr.dev/.bzr/stat-cache: [Errno 2] No such file or directory: u'/tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks_bzr(BzrBranchFormat4)/work/bzr.dev/.bzr/stat-cache'
75.583 write hc
75.586 creating branch <bzrlib.plugins.weave_fmt.branch.BzrBranchFormat4 object at 0x7fab8a855310> in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_branch.TestBranch.test_nicks_bzr%28BzrBranchFormat4%29/work/bzr.dev/
}}}

traceback-1: {{{
Traceback (most recent call last):
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/per_branch/test_branch.py", line 289, in test_nicks_bzr
    self.assertEqual(branch.nick, u"\u1234")
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 1360, in assertEqual
    pprint.pformat(a), pprint.pformat(b)))
AssertionError: not equal:
a = '\xe1\x88\xb4'
b = u'\u1234'
}}}

======================================================================
FAIL: bzrlib.tests.per_branch.test_config.TestGetConfig.test_set_user_option_with_dict(BzrBranchFormat7)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: log: {{{
77.785 creating repository in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_config.TestGetConfig.test_set_user_option_with_dict%28BzrBranchFormat7%29/work/b/.bzr/.
77.788 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x7fab9bdb1950> in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_config.TestGetConfig.test_set_user_option_with_dict%28BzrBranchFormat7%29/work/b/
 WARNING Cannot expand "name": Dicts do not support option expansion
}}}

Traceback (most recent call last):
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/per_branch/test_config.py", line 36, in test_set_user_option_with_dict
    self.assertEqual(value_dict, config.get_user_option('name'))
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 1360, in assertEqual
    pprint.pformat(a), pprint.pformat(b)))
AssertionError: not equal:
a = {'ascii': 'abcd', u'unicode \u231a': u'foo \u203d'}
b = {'unicode \xe2\x8c\x9a': 'foo \xe2\x80\xbd', 'ascii': 'abcd'}

======================================================================
FAIL: bzrlib.tests.per_branch.test_config.TestGetConfig.test_set_user_option_with_dict(BzrBranchFormat4)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: log: {{{
77.797 creating repository in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_config.TestGetConfig.test_set_user_option_with_dict%28BzrBranchFormat4%29/work/b/.bzr/.
77.798 creating branch <bzrlib.plugins.weave_fmt.branch.BzrBranchFormat4 object at 0x7fab8ac83450> in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_config.TestGetConfig.test_set_user_option_with_dict%28BzrBranchFormat4%29/work/b/
77.800 opening working tree '/tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_config.TestGetConfig.test_set_user_option_with_dict(BzrBranchFormat4)/work/b'
77.800 failed to open /tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_config.TestGetConfig.test_set_user_option_with_dict(BzrBranchFormat4)/work/b/.bzr/stat-cache: [Errno 2] No such file or directory: u'/tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_config.TestGetConfig.test_set_user_option_with_dict(BzrBranchFormat4)/work/b/.bzr/stat-cache'
77.800 write hc
77.802 creating branch <bzrlib.plugins.weave_fmt.branch.BzrBranchFormat4 object at 0x7fab8aaba4d0> in file:///tmp/testbzr-ugW1TC.tmp/bzrlib.tests.per_branch.test_config.TestGetConfig.test_set_user_option_with_dict%28BzrBranchFormat4%29/work/b/
 WARNING Cannot expand "name": Dicts do not support option expansion
}}}

traceback-1: {{{
Traceback (most recent call last):
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/per_branch/test_config.py", line 36, in test_set_user_option_with_dict
    self.assertEqual(value_dict, config.get_user_option('name'))
  File "/home/jelmer/src/bzr/build-area/bzr-2.6.0+bzr6595/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 1360, in assertEqual
    pprint.pformat(a), pprint.pformat(b)))
AssertionError: not equal:
a = {'ascii': 'abcd', u'unicode \u231a': u'foo \u203d'}
b = {'unicode \xe2\x8c\x9a': 'foo \xe2\x80\xbd', 'ascii': 'abcd'}
}}}

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

It looks like this is caused by altered behaviour from the last version of configobj, 5.6.0.

Revision history for this message
Michał Sawicz (saviq) wrote :

This now breaks bzr in vivid, as we upgraded to python-configobj 5.0.6.

Changed in bzr (Ubuntu):
status: New → Confirmed
Changed in bzr:
status: New → Confirmed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I've patched the Debian package to work around this by using the bzr-bundled configobj.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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