Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork938
Commit12bbace
committed
Add xfail mark for new test_index_mutation failure
The test assumes symlinks are never created on Windows. This oftenturns out to be correct, because core.symlinks defaults to false onWindows. (On some Windows systems, creating them is a privilegedoperation; this can be reconfigured, and unprivileged creation ofsymlinks is often enabled on systems used for development.)However, on a Windows system with core.symlinks set to true, gitwill create symlinks if it can, when checking out entries committedto a repository as symlinks. GitHub Actions runners for Windows dothis ever sinceactions/runner-images#1186(the file is now at images/windows/scripts/build/Install-Git.ps1;the `/o:EnableSymlinks=Enabled` option continues to be passed,causing Git for Windows to be installed with core.symlinks set totrue in the system scope).For now, this adds an xfail marking to test_index_mutation, for theFileNotFoundError raised when a symlink, which is expected not tobe a symlink, is passed to `open`, causing an attempt to open itsnonexistent target. (The check itself might bear refinement: aswritten, it reads the core.symlinks variable from any scope,including the local scope, which at the time of the check willusually be the cloned GitPython directory, where pytest is run.)While adding an import, this commit also improves the grouping andsorting of existing ones.1 parentb12fd4a commit12bbace
1 file changed
+17
-8
lines changedLines changed: 17 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 |
| |
| 24 | + | |
21 | 25 |
| |
22 |
| - | |
23 |
| - | |
24 | 26 |
| |
25 |
| - | |
26 |
| - | |
27 |
| - | |
| 27 | + | |
| 28 | + | |
28 | 29 |
| |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 |
| |
30 |
| - | |
31 | 35 |
| |
32 | 36 |
| |
33 | 37 |
| |
| |||
530 | 534 |
| |
531 | 535 |
| |
532 | 536 |
| |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
533 | 542 |
| |
534 | 543 |
| |
535 | 544 |
| |
| |||
740 | 749 |
| |
741 | 750 |
| |
742 | 751 |
| |
743 |
| - | |
| 752 | + | |
744 | 753 |
| |
745 | 754 |
| |
746 | 755 |
| |
| |||
774 | 783 |
| |
775 | 784 |
| |
776 | 785 |
| |
777 |
| - | |
| 786 | + | |
778 | 787 |
| |
779 | 788 |
| |
780 | 789 |
| |
|
0 commit comments
Comments
(0)