| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 799c853 commit b284ad7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,7 @@ | |||
| 3 | 3 | # This module is part of GitPython and is released under the | |
| 4 | 4 | # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ | |
| 5 | 5 | ||
| 6 | + import os | ||
| 6 | 7 | import os.path as osp | |
| 7 | 8 | from pathlib import Path | |
| 8 | 9 | import random | |
@@ -767,6 +768,11 @@ def test_create_remote_unsafe_url(self, rw_repo): | |||
| 767 | 768 | Remote.create(rw_repo, "origin", url) | |
| 768 | 769 | assert not tmp_file.exists() | |
| 769 | 770 | ||
| 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 | + ) | ||
| 770 | 776 | @with_rw_repo("HEAD") | |
| 771 | 777 | def test_create_remote_unsafe_url_allowed(self, rw_repo): | |
| 772 | 778 | with tempfile.TemporaryDirectory() as tdir: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments