From a9a5414300a245b6e93ea4f39fbca792c3ec753f Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 15 Jan 2015 19:16:08 +0100 Subject: Fixed previously failing test It actually revealed a bug in the implementation of Submodule.add, which just showed in python 3 for the wrong reasons. Thankfully, failing tests after all allowed to get this issue fixed ... . --- git/test/test_submodule.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'git/test/test_submodule.py') diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py index 2be0e795..3e3a97d8 100644 --- a/git/test/test_submodule.py +++ b/git/test/test_submodule.py @@ -610,6 +610,7 @@ class TestSubmodule(TestBase): git.Repo.init(empty_repo_dir) for checkout_mode in range(2): - self.failUnlessRaises(ValueError, parent.create_submodule, 'empty', 'empty', - url=empty_repo_dir, no_checkout=checkout_mode) + name = 'empty' + str(checkout_mode) + self.failUnlessRaises(ValueError, parent.create_submodule, name, name, + url=empty_repo_dir, no_checkout=checkout_mode and True or False) # end for each checkout mode -- cgit v1.2.3