~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_versionedfile.py

  • Committer: John Arbash Meinel
  • Date: 2008-06-09 20:48:20 UTC
  • mto: This revision was merged to the branch mainline in revision 3489.
  • Revision ID: john@arbash-meinel.com-20080609204820-llja7xdsn90zmgza
Skip the new test for old weave formats that don't support ghosts

Show diffs side-by-side

added added

removed removed

Lines of Context:
544
544
 
545
545
    def test_make_mpdiffs_with_ghosts(self):
546
546
        vf = self.get_file('foo')
547
 
        vf.add_lines_with_ghosts('text', ['ghost'], ['line\n'])
 
547
        try:
 
548
            vf.add_lines_with_ghosts('text', ['ghost'], ['line\n'])
 
549
        except NotImplementedError:
 
550
            # old Weave formats do not allow ghosts
 
551
            return
548
552
        self.assertRaises(errors.RevisionNotPresent, vf.make_mpdiffs, ['ghost'])
549
553
 
550
554
    def _setup_for_deltas(self, f):