@@ -284,14 +284,6 @@ def add_bad_blob():
284
284
except Exception as ex :
285
285
assert "index.lock' could not be obtained" not in str (ex )
286
286
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
- )
295
287
@with_rw_repo ("0.1.6" )
296
288
def test_index_file_from_tree (self , rw_repo ):
297
289
common_ancestor_sha = "5117c9c8a4d3af19a9958677e45cda9269de1541"
@@ -342,14 +334,6 @@ def test_index_file_from_tree(self, rw_repo):
342
334
# END for each blob
343
335
self .assertEqual (num_blobs , len (three_way_index .entries ))
344
336
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
- )
353
337
@with_rw_repo ("0.1.6" )
354
338
def test_index_merge_tree (self , rw_repo ):
355
339
# 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):
412
396
self .assertEqual (len (unmerged_blobs ), 1 )
413
397
self .assertEqual (list (unmerged_blobs .keys ())[0 ], manifest_key [0 ])
414
398
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
- )
423
399
@with_rw_repo ("0.1.6" )
424
400
def test_index_file_diffing (self , rw_repo ):
425
401
# Default Index instance points to our index.
@@ -554,14 +530,6 @@ def _count_existing(self, repo, files):
554
530
555
531
# END num existing helper
556
532
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
- )
565
533
@with_rw_repo ("0.1.6" )
566
534
def test_index_mutation (self , rw_repo ):
567
535
index = rw_repo .index
@@ -915,14 +883,6 @@ def make_paths():
915
883
for absfile in absfiles :
916
884
assert osp .isfile (absfile )
917
885
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
- )
926
886
@with_rw_repo ("HEAD" )
927
887
def test_compare_write_tree (self , rw_repo ):
928
888
"""Test writing all trees, comparing them for equality."""
0 commit comments