diff --git a/test/test_submodule.py b/test/test_submodule.py index 1e39924dd..7fbccf831 100644 --- a/test/test_submodule.py +++ b/test/test_submodule.py @@ -950,14 +950,14 @@ def test_remove_norefs(self, rwdir): assert not sm.exists() @pytest.mark.xfail( - os.name == "nt" and (3, 12) <= sys.version_info < (3, 13), + os.name == "nt" and sys.version_info >= (3, 12), reason=( "The sm.move call fails. Submodule.move calls os.renames, which raises:\n" "PermissionError: [WinError 32] " "The process cannot access the file because it is being used by another process: " R"'C:\Users\ek\AppData\Local\Temp\test_renamekkbznwjp\parent\mymodules\myname' " R"-> 'C:\Users\ek\AppData\Local\Temp\test_renamekkbznwjp\parent\renamed\myname'" - "\nThis resembles other Windows errors, but seems only to affect Python 3.12 somehow." + "\nThis resembles other Windows errors, but only occurs starting in Python 3.12." ), raises=PermissionError, )