summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-11-15 19:03:53 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-11-15 19:03:53 +0100
commit624556eae1c292a1dc283d9dca1557e28abe8ee3 (patch)
treea90ef1572044f113d3dae587f67f6ca51593ba07 /test/git/test_repo.py
parentf97653aa06cf84bcf160be3786b6fce49ef52961 (diff)
downloadgitpython-624556eae1c292a1dc283d9dca1557e28abe8ee3.tar.gz
Optimized test-decorators, by completely removing with_bare_rw_repo, which was mainly copy-paste from with_rw_repo, what a shame
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")