~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_reconfigure.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-20 12:19:29 UTC
  • mfrom: (6437.23.11 2.5)
  • mto: (6581.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6582.
  • Revision ID: jelmer@samba.org-20120220121929-7ni2psvjoatm1yp4
Merge bzr/2.5.

Show diffs side-by-side

added added

removed removed

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