test failure in bzrlib.tests.test_multiparent.TestMultiVersionedFile.test_save_load on Python 2.7

Bug #694230 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Triaged
High
Unassigned

Bug Description

On python 2.7 this test fails for some reason, I haven't been to find out why yet:

running=./bzr selftest --subunit --load-list /tmp/tmp8sh4fm
======================================================================
ERROR: bzrlib.tests.test_multiparent.TestMultiVersionedFile.test_save_load
----------------------------------------------------------------------
Text attachment: log
------------
0.887 creating repository in file:///tmp/testbzr-oog7HN.tmp/.bzr/.
0.892 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x11a0250> in file:///tmp/testbzr-oog7HN.tmp/
0.905 trying to create missing lock '/tmp/testbzr-oog7HN.tmp/.bzr/checkout/dirstate'
0.905 opening working tree '/tmp/testbzr-oog7HN.tmp'
0.926 opening working tree '/tmp/testbzr-oog7HN.tmp'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 499, in _run_test_method
    return self._get_test_method()()
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/tests/test_multiparent.py", line 263, in test_save_load
    self.assertEqual('a\nb\nc\nd', ''.join(newvf.get_line_list(['a'])[0]))
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/multiparent.py", line 512, in get_line_list
    return [self.cache_version(v) for v in version_ids]
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/multiparent.py", line 519, in cache_version
    diff = self.get_diff(version_id)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/multiparent.py", line 567, in get_diff
    return MultiParent.from_patch(zip_file.read())
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/multiparent.py", line 192, in from_patch
    return cls._from_patch(StringIO(text))
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/multiparent.py", line 211, in _from_patch
    hunks[-1].lines[-1] += '\n'
IndexError: list index out of range
------------

Jelmer Vernooij (jelmer)
Changed in bzr:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Martin Packman (gz) wrote :

See the existing bug for background on why this happens.

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.