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

Commitb284ad7

Browse files
committed
Mark test_create_remote_unsafe_url_allowed xfail on Windows
The test mostly works on Windows, but it fails because the tmp_filepath is expected to appear in remote_url with backslash separators,but (forward) slashes appear instead.
1 parent799c853 commitb284ad7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎test/test_remote.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# This module is part of GitPython and is released under the
44
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/
55

6+
importos
67
importos.pathasosp
78
frompathlibimportPath
89
importrandom
@@ -767,6 +768,11 @@ def test_create_remote_unsafe_url(self, rw_repo):
767768
Remote.create(rw_repo,"origin",url)
768769
assertnottmp_file.exists()
769770

771+
@pytest.mark.xfail(
772+
os.name=="nt",
773+
reason=R"Multiple '\' instead of '/' in remote.url make it differ from expected value",
774+
raises=AssertionError,
775+
)
770776
@with_rw_repo("HEAD")
771777
deftest_create_remote_unsafe_url_allowed(self,rw_repo):
772778
withtempfile.TemporaryDirectory()astdir:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp