@@ -135,7 +135,7 @@ def _cmp_tree_index(self, tree, index):
135135 raise AssertionError ("CMP Failed: Missing entries in index: %s, missing in tree: %s" %
136136 (bset - iset , iset - bset ))
137137 # END assertion message
138-
138+
139139 @with_rw_repo ('0.1.6' )
140140 def test_index_lock_handling (self , rw_repo ):
141141 def add_bad_blob ():
@@ -157,6 +157,9 @@ def add_bad_blob():
157157
158158 @with_rw_repo ('0.1.6' )
159159 def test_index_file_from_tree (self , rw_repo ):
160+ if sys .version_info < (2 , 7 ):
161+ ## Skipped, not `assertRaisesRegexp` in py2.6
162+ return
160163 common_ancestor_sha = "5117c9c8a4d3af19a9958677e45cda9269de1541"
161164 cur_sha = "4b43ca7ff72d5f535134241e7c797ddc9c7a3573"
162165 other_sha = "39f85c4358b7346fee22169da9cad93901ea9eb9"
@@ -576,7 +579,7 @@ def mixed_iterator():
576579 if sys .platform != "win32" :
577580 for target in ('/etc/nonexisting' , '/etc/passwd' , '/etc' ):
578581 basename = "my_real_symlink"
579-
582+
580583 link_file = os .path .join (rw_repo .working_tree_dir , basename )
581584 os .symlink (target , link_file )
582585 entries = index .reset (new_commit ).add ([link_file ], fprogress = self ._fprogress_add )
0 commit comments