@@ -284,14 +284,6 @@ def add_bad_blob():
284284 except Exception as ex :
285285 assert "index.lock' could not be obtained" not in str (ex )
286286
287- @pytest .mark .xfail (
288- os .name == "nt" ,
289- reason = (
290- "IndexFile.from_tree is broken on Windows (related to NamedTemporaryFile), see #1630.\n "
291- "'git read-tree --index-output=...' fails with 'fatal: unable to write new index file'."
292- ),
293- raises = GitCommandError ,
294- )
295287 @with_rw_repo ("0.1.6" )
296288 def test_index_file_from_tree (self , rw_repo ):
297289 common_ancestor_sha = "5117c9c8a4d3af19a9958677e45cda9269de1541"
@@ -342,14 +334,6 @@ def test_index_file_from_tree(self, rw_repo):
342334 # END for each blob
343335 self .assertEqual (num_blobs , len (three_way_index .entries ))
344336
345- @pytest .mark .xfail (
346- os .name == "nt" ,
347- reason = (
348- "IndexFile.from_tree is broken on Windows (related to NamedTemporaryFile), see #1630.\n "
349- "'git read-tree --index-output=...' fails with 'fatal: unable to write new index file'."
350- ),
351- raises = GitCommandError ,
352- )
353337 @with_rw_repo ("0.1.6" )
354338 def test_index_merge_tree (self , rw_repo ):
355339 # A bit out of place, but we need a different repo for this:
@@ -412,14 +396,6 @@ def test_index_merge_tree(self, rw_repo):
412396 self .assertEqual (len (unmerged_blobs ), 1 )
413397 self .assertEqual (list (unmerged_blobs .keys ())[0 ], manifest_key [0 ])
414398
415- @pytest .mark .xfail (
416- os .name == "nt" ,
417- reason = (
418- "IndexFile.from_tree is broken on Windows (related to NamedTemporaryFile), see #1630.\n "
419- "'git read-tree --index-output=...' fails with 'fatal: unable to write new index file'."
420- ),
421- raises = GitCommandError ,
422- )
423399 @with_rw_repo ("0.1.6" )
424400 def test_index_file_diffing (self , rw_repo ):
425401 # Default Index instance points to our index.
@@ -554,14 +530,6 @@ def _count_existing(self, repo, files):
554530
555531 # END num existing helper
556532
557- @pytest .mark .xfail (
558- os .name == "nt" ,
559- reason = (
560- "IndexFile.from_tree is broken on Windows (related to NamedTemporaryFile), see #1630.\n "
561- "'git read-tree --index-output=...' fails with 'fatal: unable to write new index file'."
562- ),
563- raises = GitCommandError ,
564- )
565533 @with_rw_repo ("0.1.6" )
566534 def test_index_mutation (self , rw_repo ):
567535 index = rw_repo .index
@@ -915,14 +883,6 @@ def make_paths():
915883 for absfile in absfiles :
916884 assert osp .isfile (absfile )
917885
918- @pytest .mark .xfail (
919- os .name == "nt" ,
920- reason = (
921- "IndexFile.from_tree is broken on Windows (related to NamedTemporaryFile), see #1630.\n "
922- "'git read-tree --index-output=...' fails with 'fatal: unable to write new index file'."
923- ),
924- raises = GitCommandError ,
925- )
926886 @with_rw_repo ("HEAD" )
927887 def test_compare_write_tree (self , rw_repo ):
928888 """Test writing all trees, comparing them for equality."""
0 commit comments