/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/matchers.py

  • Committer: Jelmer Vernooij
  • Date: 2011-06-19 12:45:11 UTC
  • mto: This revision was merged to the branch mainline in revision 5987.
  • Revision ID: jelmer@samba.org-20110619124511-x679jcuj1d0naeb6
fix test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
        try:
108
108
            graph = self.repository.get_graph()
109
109
            got = [r for r, p in graph.iter_ancestry([self.revision_id])]
110
 
            if not _mod_revision.NULL_REVISION in got:
111
 
                raise AssertionError("Unable to find %r in %r" % (
112
 
                    self.revision_id, self.repository))
113
 
            got.remove(_mod_revision.NULL_REVISION)
 
110
            if _mod_revision.NULL_REVISION in got:
 
111
                got.remove(_mod_revision.NULL_REVISION)
114
112
        finally:
115
113
            self.repository.unlock()
116
114
        if sorted(got) != sorted(expected):