@@ -135,7 +135,7 @@ def _cmp_tree_index(self, tree, index):
135
135
raise AssertionError ("CMP Failed: Missing entries in index: %s, missing in tree: %s" %
136
136
(bset - iset , iset - bset ))
137
137
# END assertion message
138
-
138
+
139
139
@with_rw_repo ('0.1.6' )
140
140
def test_index_lock_handling (self , rw_repo ):
141
141
def add_bad_blob ():
@@ -157,6 +157,9 @@ def add_bad_blob():
157
157
158
158
@with_rw_repo ('0.1.6' )
159
159
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
160
163
common_ancestor_sha = "5117c9c8a4d3af19a9958677e45cda9269de1541"
161
164
cur_sha = "4b43ca7ff72d5f535134241e7c797ddc9c7a3573"
162
165
other_sha = "39f85c4358b7346fee22169da9cad93901ea9eb9"
@@ -576,7 +579,7 @@ def mixed_iterator():
576
579
if sys .platform != "win32" :
577
580
for target in ('/etc/nonexisting' , '/etc/passwd' , '/etc' ):
578
581
basename = "my_real_symlink"
579
-
582
+
580
583
link_file = os .path .join (rw_repo .working_tree_dir , basename )
581
584
os .symlink (target , link_file )
582
585
entries = index .reset (new_commit ).add ([link_file ], fprogress = self ._fprogress_add )
0 commit comments