/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-11 04:02:31 UTC
  • mto: This revision was merged to the branch mainline in revision 6362.
  • Revision ID: jelmer@samba.org-20111211040231-owmeupbxlkyfwegk
Move pack clear test to test_repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1345
1345
        obsolete_names = set([osutils.splitext(n)[0] for n in obsolete_packs])
1346
1346
        self.assertEqual([pack.name], sorted(obsolete_names))
1347
1347
 
 
1348
    def test_pack_no_obsolete_packs_directory(self):
 
1349
        """Bug #314314, don't fail if obsolete_packs directory does
 
1350
        not exist."""
 
1351
        tree, r, packs, revs = self.make_packs_and_alt_repo(write_lock=True)
 
1352
        r.control_transport.rmdir('obsolete_packs')
 
1353
        packs._clear_obsolete_packs()
1348
1354
 
1349
1355
 
1350
1356
class TestPack(TestCaseWithTransport):