Comment 6 for bug 893470

Revision history for this message
Neil Martinsen-Burrell (nmb) wrote :

If I add an assert for len(list_branches()) to bb.test_switch.TestSwitch.test_switch_new_colocated:

$ bzr diff blackbox/test_switch.py=== modified file 'bzrlib/tests/blackbox/test_switch.py'
--- bzrlib/tests/blackbox/test_switch.py 2011-11-16 17:52:07 +0000
+++ bzrlib/tests/blackbox/test_switch.py 2011-11-22 21:11:12 +0000
@@ -212,6 +212,7 @@
         self.assertEquals(
             set([b.name for b in bzrdir.list_branches()]),
             set(["foo", "anotherbranch"]))
+ self.assertEquals(len(bzrdir.list_branches()), 2)
         self.assertEquals(bzrdir.open_branch().name, "anotherbranch")
         self.assertEquals(bzrdir.open_branch().last_revision(), revid1)

then that test fails too.