summaryrefslogtreecommitdiff
path: root/test/git/test_commit.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/git/test_commit.py')
-rw-r--r--test/git/test_commit.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/git/test_commit.py b/test/git/test_commit.py
index 570ea65e..1e0338d6 100644
--- a/test/git/test_commit.py
+++ b/test/git/test_commit.py
@@ -88,6 +88,11 @@ class TestCommit(TestBase):
# traversal should stop when the beginning is reached
self.failUnlessRaises(StopIteration, first.traverse().next)
+ # parents of the first commit should be empty ( as the only parent has a null
+ # sha )
+ assert len(first.parents) == 0
+
+
@patch_object(Git, '_call_process')
def test_rev_list_bisect_all(self, git):
"""