@@ -704,7 +704,7 @@ def test_first_submodule(self, rwrepo):
704704 sm = rwrepo .create_submodule (sm_name , sm_path , rwrepo .git_dir , no_checkout = True )
705705 assert sm .exists () and sm .module_exists ()
706706 rwrepo .index .commit ("Added submodule " + sm_name )
707- # end for each submodule path to add
707+ # END for each submodule path to add
708708
709709 self .assertRaises (ValueError , rwrepo .create_submodule , "fail" , osp .expanduser ("~" ))
710710 self .assertRaises (
@@ -731,7 +731,7 @@ def test_add_empty_repo(self, rwdir):
731731 url = empty_repo_dir ,
732732 no_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):
783783 for init in (False , True ):
784784 sm .update (init = init )
785785 sm2 .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
789789 sm .move (sm .path + "_moved" )
790790 sm2 .move (sm2 .path + "_moved" )
@@ -839,7 +839,7 @@ def assert_exists(sm, value=True):
839839 assert sm .exists () == value
840840 assert 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):
854854 assert osp .isfile (module_repo_path )
855855 assert sm .module ().has_separate_working_tree ()
856856 assert 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.
860860 new_sm_path = join_path_native ("submodules" , "one" )
@@ -911,7 +911,7 @@ def assert_exists(sm, value=True):
911911 sm .remove (dry_run = dry_run , force = True )
912912 assert_exists (sm , value = dry_run )
913913 assert 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
917917 def test_ignore_non_submodule_file (self , rwdir ):
@@ -974,7 +974,6 @@ def test_rename(self, rwdir):
974974 sm_mod = sm .module ()
975975 if osp .isfile (osp .join (sm_mod .working_tree_dir , ".git" )) == sm ._need_gitfile_submodules (parent .git ):
976976 assert sm_mod .git_dir .endswith (join_path_native (".git" , "modules" , new_sm_name ))
977- # end
978977
979978 @with_rw_directory
980979 def test_branch_renames (self , rw_dir ):
0 commit comments