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

Commitf62df52

Browse files
committed
Remove TestSubmodule.test_rename xfail mark
This is to clearly establish the failure still occurs (since we donot have strict=True set). It is in preparation for working aroundthe problems with a call to gc.collect().See82c361e and0b7ee17 for context.
1 parent0fa0047 commitf62df52

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

‎test/test_submodule.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -948,18 +948,6 @@ def test_remove_norefs(self, rwdir):
948948
sm.remove()
949949
assertnotsm.exists()
950950

951-
@pytest.mark.xfail(
952-
os.name=="nt"andsys.version_info>= (3,12),
953-
reason=(
954-
"The sm.move call fails. Submodule.move calls os.renames, which raises:\n"
955-
"PermissionError: [WinError 32] "
956-
"The process cannot access the file because it is being used by another process: "
957-
R"'C:\Users\ek\AppData\Local\Temp\test_renamekkbznwjp\parent\mymodules\myname' "
958-
R"-> 'C:\Users\ek\AppData\Local\Temp\test_renamekkbznwjp\parent\renamed\myname'"
959-
"\nThis resembles other Windows errors, but only occurs starting in Python 3.12."
960-
),
961-
raises=PermissionError,
962-
)
963951
@with_rw_directory
964952
deftest_rename(self,rwdir):
965953
parent=git.Repo.init(osp.join(rwdir,"parent"))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp