~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_reconfigure.py

(jelmer) Reduce the number of connections made during "bzr branch
 --stacked". (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    reconfigure,
22
22
    repository,
23
23
    tests,
24
 
    vf_repository,
25
24
    workingtree,
26
25
    )
27
26
 
259
258
    def test_branch_to_lightweight_checkout_failure(self):
260
259
        parent, child, reconfiguration = \
261
260
            self.prepare_branch_to_lightweight_checkout()
262
 
        old_Repository_fetch = vf_repository.VersionedFileRepository.fetch
263
 
        vf_repository.VersionedFileRepository.fetch = None
 
261
        old_Repository_fetch = repository.Repository.fetch
 
262
        repository.Repository.fetch = None
264
263
        try:
265
264
            self.assertRaises(TypeError, reconfiguration.apply)
266
265
        finally:
267
 
            vf_repository.VersionedFileRepository.fetch = old_Repository_fetch
 
266
            repository.Repository.fetch = old_Repository_fetch
268
267
        child = _mod_branch.Branch.open('child')
269
268
        self.assertContainsRe(child.base, 'child/$')
270
269