Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2814263

Browse files
committed
Add a missing PermissionError xfail on Windows
One of the tests that was commented as being skipped as a result ofSkipTest rasied in git.util.rmtree or one of the functions thatcalls it, test_git_submodule_compatibility, was not skipped in thatway and was actually failing on Windows with PermissionError. Itappears that the cause of failure changed over time, so that itonce involved rmtree but no longer does.This removes the outdated comment and adds an xfail mark instead,specific to PermissionError and with a message identifying where inthe test case's logic the PermissionError is currently triggered.
1 parent8107cbf commit2814263

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎test/test_submodule.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,11 @@ def test_git_submodules_and_add_sm_with_new_commit(self, rwdir):
819819
assertcommit_sm.binsha==sm_too.binsha
820820
assertsm_too.binsha!=sm.binsha
821821

822-
# @skipIf(HIDE_WINDOWS_KNOWN_ERRORS, ## ACTUALLY skipped by `git.submodule.base#L869`.
823-
# "FIXME: helper.wrapper fails with: PermissionError: [WinError 5] Access is denied: "
824-
# "'C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\test_work_tree_unsupportedryfa60di\\master_repo\\.git\\objects\\pack\\pack-bc9e0787aef9f69e1591ef38ea0a6f566ec66fe3.idx") # noqa E501
822+
@pytest.mark.xfail(
823+
HIDE_WINDOWS_KNOWN_ERRORS,
824+
reason='"The process cannot access the file because it is being used by another process" on call to sm.move',
825+
raises=PermissionError,
826+
)
825827
@with_rw_directory
826828
deftest_git_submodule_compatibility(self,rwdir):
827829
parent=git.Repo.init(osp.join(rwdir,"parent"))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp