@@ -704,7 +704,7 @@ def test_first_submodule(self, rwrepo):
704704sm = rwrepo .create_submodule (sm_name ,sm_path ,rwrepo .git_dir ,no_checkout = True )
705705assert sm .exists ()and sm .module_exists ()
706706rwrepo .index .commit ("Added submodule " + sm_name )
707- #end for each submodule path to add
707+ #END for each submodule path to add
708708
709709self .assertRaises (ValueError ,rwrepo .create_submodule ,"fail" ,osp .expanduser ("~" ))
710710self .assertRaises (
@@ -731,7 +731,7 @@ def test_add_empty_repo(self, rwdir):
731731url = empty_repo_dir ,
732732no_checkout = checkout_mode and True or False ,
733733 )
734- #end for each checkout mode
734+ #END for each checkout mode
735735
736736@with_rw_directory
737737@_patch_git_config ("protocol.file.allow" ,"always" )
@@ -783,8 +783,8 @@ def test_git_submodules_and_add_sm_with_new_commit(self, rwdir):
783783for init in (False ,True ):
784784sm .update (init = init )
785785sm2 .update (init = init )
786- #end for each init state
787- #end for each iteration
786+ #END for each init state
787+ #END for each iteration
788788
789789sm .move (sm .path + "_moved" )
790790sm2 .move (sm2 .path + "_moved" )
@@ -839,7 +839,7 @@ def assert_exists(sm, value=True):
839839assert sm .exists ()== value
840840assert sm .module_exists ()== value
841841
842- #end
842+ #END def assert_exists
843843
844844# As git is backwards compatible itself, it would still recognize what we do here... unless we really
845845# muss it up. That's the only reason why the test is still here...
@@ -854,7 +854,7 @@ def assert_exists(sm, value=True):
854854assert osp .isfile (module_repo_path )
855855assert sm .module ().has_separate_working_tree ()
856856assert find_submodule_git_dir (module_repo_path )is not None ,"module pointed to by .git file must be valid"
857- #end verify submodule 'style'
857+ #END verify submodule 'style'
858858
859859# Test move.
860860new_sm_path = join_path_native ("submodules" ,"one" )
@@ -911,7 +911,7 @@ def assert_exists(sm, value=True):
911911sm .remove (dry_run = dry_run ,force = True )
912912assert_exists (sm ,value = dry_run )
913913assert osp .isdir (sm_module_path )== dry_run
914- #end for each dry-run mode
914+ #END for each dry-run mode
915915
916916@with_rw_directory
917917def test_ignore_non_submodule_file (self ,rwdir ):
@@ -974,7 +974,6 @@ def test_rename(self, rwdir):
974974sm_mod = sm .module ()
975975if osp .isfile (osp .join (sm_mod .working_tree_dir ,".git" ))== sm ._need_gitfile_submodules (parent .git ):
976976assert sm_mod .git_dir .endswith (join_path_native (".git" ,"modules" ,new_sm_name ))
977- # end
978977
979978@with_rw_directory
980979def test_branch_renames (self ,rw_dir ):