Skip to content

Commit 8923236

Browse files
committed
Change skipIf(not ...) to skipUnless(...)
1 parent cf5f1dc commit 8923236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/test_submodule.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import tempfile
88
from pathlib import Path
99
import sys
10-
from unittest import mock, skipIf
10+
from unittest import mock, skipIf, skipUnless
1111

1212
import pytest
1313

@@ -1039,7 +1039,7 @@ def test_branch_renames(self, rw_dir):
10391039
assert sm_mod.commit() == sm_pfb.commit, "Now head should have been reset"
10401040
assert sm_mod.head.ref.name == sm_pfb.name
10411041

1042-
@skipIf(not is_win, "Specifically for Windows.")
1042+
@skipUnless(is_win, "Specifically for Windows.")
10431043
def test_to_relative_path_with_super_at_root_drive(self):
10441044
class Repo(object):
10451045
working_tree_dir = "D:\\"

0 commit comments

Comments
 (0)