summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index 063b5dff..3a59f05e 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -558,7 +558,7 @@ class TestRepo(TestBase):
def test_submodules(self):
assert len(self.rorepo.submodules) == 1 # non-recursive
- assert len(self.rorepo.list_submodules(recursive=True)) == 2
+ assert len(list(self.rorepo.iter_submodules())) == 2
assert isinstance(self.rorepo.submodule("lib/git/ext/gitdb"), Submodule)
self.failUnlessRaises(ValueError, self.rorepo.submodule, "doesn't exist")