~ubuntu-branches/ubuntu/utopic/dulwich/utopic

« back to all changes in this revision

Viewing changes to dulwich/tests/test_walk.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2014-04-23 01:41:04 UTC
  • mfrom: (1.5.5)
  • Revision ID: package-import@ubuntu.com-20140423014104-nulhaisomztpfriy
Tags: 0.9.6-1
* New upstream release.
* Allow output to stderr in autopktest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    _topo_reorder
48
48
    )
49
49
from dulwich.tests import TestCase
50
 
from utils import (
 
50
from dulwich.tests.utils import (
51
51
    F,
52
52
    make_object,
53
53
    build_commit_graph,
88
88
 
89
89
    def make_linear_commits(self, num_commits, **kwargs):
90
90
        commit_spec = []
91
 
        for i in xrange(1, num_commits + 1):
 
91
        for i in range(1, num_commits + 1):
92
92
            c = [i]
93
93
            if i > 1:
94
94
                c.append(i - 1)
122
122
        # implementation (in particular the choice of _MAX_EXTRA_COMMITS), but
123
123
        # we should at least be able to walk some history in a broken repo.
124
124
        del self.store[cs[-1].id]
125
 
        for i in xrange(1, 11):
 
125
        for i in range(1, 11):
126
126
            self.assertWalkYields(cs[:i], [cs[0].id], max_entries=i)
127
127
        self.assertRaises(MissingCommitError, Walker, self.store, [cs[-1].id])
128
128