Skip to content

Commit 72cf71c

Browse files
committed
Allow failure of that one test on cygwin
1 parent 4c460a3 commit 72cf71c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎test/test_util.py

+7
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66

77
import os
88
import pickle
9+
import sys
910
import tempfile
1011
import time
1112
from unittest import mock, skipIf
1213
from datetime import datetime
1314

15+
import pytest
1416
import ddt
1517

1618
from git.cmd import dashify
@@ -154,6 +156,11 @@ def test_lock_file(self):
154156
lock_file._obtain_lock_or_raise()
155157
lock_file._release_lock()
156158

159+
@pytest.mark.xfail(
160+
sys.platform == "cygwin",
161+
reason="Cygwin fails here for some reason, always",
162+
raises=AssertionError
163+
)
157164
def test_blocking_lock_file(self):
158165
my_file = tempfile.mktemp()
159166
lock_file = BlockingLockFile(my_file)

0 commit comments

Comments
 (0)