| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b284ad7 commit 61d1fba
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -831,6 +831,15 @@ def test_fetch_unsafe_options(self, rw_repo): | |||
| 831 | 831 | remote.fetch(**unsafe_option) | |
| 832 | 832 | assert not tmp_file.exists() | |
| 833 | 833 | ||
| 834 | + @pytest.mark.xfail( | ||
| 835 | + os.name == "nt", | ||
| 836 | + reason=( | ||
| 837 | + "File not created. A separate Windows command may be needed. This and the " | ||
| 838 | + "currently passing test test_fetch_unsafe_options must be adjusted in the " | ||
| 839 | + "same way. Until then, test_fetch_unsafe_options is unreliable on Windows." | ||
| 840 | + ), | ||
| 841 | + raises=AssertionError, | ||
| 842 | + ) | ||
| 834 | 843 | @with_rw_repo("HEAD") | |
| 835 | 844 | def test_fetch_unsafe_options_allowed(self, rw_repo): | |
| 836 | 845 | with tempfile.TemporaryDirectory() as tdir: | |
@@ -890,6 +899,15 @@ def test_pull_unsafe_options(self, rw_repo): | |||
| 890 | 899 | remote.pull(**unsafe_option) | |
| 891 | 900 | assert not tmp_file.exists() | |
| 892 | 901 | ||
| 902 | + @pytest.mark.xfail( | ||
| 903 | + os.name == "nt", | ||
| 904 | + reason=( | ||
| 905 | + "File not created. A separate Windows command may be needed. This and the " | ||
| 906 | + "currently passing test test_pull_unsafe_options must be adjusted in the " | ||
| 907 | + "same way. Until then, test_pull_unsafe_options is unreliable on Windows." | ||
| 908 | + ), | ||
| 909 | + raises=AssertionError, | ||
| 910 | + ) | ||
| 893 | 911 | @with_rw_repo("HEAD") | |
| 894 | 912 | def test_pull_unsafe_options_allowed(self, rw_repo): | |
| 895 | 913 | with tempfile.TemporaryDirectory() as tdir: | |
@@ -955,6 +973,15 @@ def test_push_unsafe_options(self, rw_repo): | |||
| 955 | 973 | remote.push(**unsafe_option) | |
| 956 | 974 | assert not tmp_file.exists() | |
| 957 | 975 | ||
| 976 | + @pytest.mark.xfail( | ||
| 977 | + os.name == "nt", | ||
| 978 | + reason=( | ||
| 979 | + "File not created. A separate Windows command may be needed. This and the " | ||
| 980 | + "currently passing test test_push_unsafe_options must be adjusted in the " | ||
| 981 | + "same way. Until then, test_push_unsafe_options is unreliable on Windows." | ||
| 982 | + ), | ||
| 983 | + raises=AssertionError, | ||
| 984 | + ) | ||
| 958 | 985 | @with_rw_repo("HEAD") | |
| 959 | 986 | def test_push_unsafe_options_allowed(self, rw_repo): | |
| 960 | 987 | with tempfile.TemporaryDirectory() as tdir: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -294,6 +294,15 @@ def test_clone_unsafe_options(self, rw_repo): | |||
| 294 | 294 | rw_repo.clone(tmp_dir, **unsafe_option) | |
| 295 | 295 | assert not tmp_file.exists() | |
| 296 | 296 | ||
| 297 | + @pytest.mark.xfail( | ||
| 298 | + os.name == "nt", | ||
| 299 | + reason=( | ||
| 300 | + "File not created. A separate Windows command may be needed. This and the " | ||
| 301 | + "currently passing test test_clone_unsafe_options must be adjusted in the " | ||
| 302 | + "same way. Until then, test_clone_unsafe_options is unreliable on Windows." | ||
| 303 | + ), | ||
| 304 | + raises=AssertionError, | ||
| 305 | + ) | ||
| 297 | 306 | @with_rw_repo("HEAD") | |
| 298 | 307 | def test_clone_unsafe_options_allowed(self, rw_repo): | |
| 299 | 308 | with tempfile.TemporaryDirectory() as tdir: | |
@@ -364,6 +373,15 @@ def test_clone_from_unsafe_options(self, rw_repo): | |||
| 364 | 373 | Repo.clone_from(rw_repo.working_dir, tmp_dir, **unsafe_option) | |
| 365 | 374 | assert not tmp_file.exists() | |
| 366 | 375 | ||
| 376 | + @pytest.mark.xfail( | ||
| 377 | + os.name == "nt", | ||
| 378 | + reason=( | ||
| 379 | + "File not created. A separate Windows command may be needed. This and the " | ||
| 380 | + "currently passing test test_clone_from_unsafe_options must be adjusted in the " | ||
| 381 | + "same way. Until then, test_clone_from_unsafe_options is unreliable on Windows." | ||
| 382 | + ), | ||
| 383 | + raises=AssertionError, | ||
| 384 | + ) | ||
| 367 | 385 | @with_rw_repo("HEAD") | |
| 368 | 386 | def test_clone_from_unsafe_options_allowed(self, rw_repo): | |
| 369 | 387 | with tempfile.TemporaryDirectory() as tdir: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments