Skip to content

Commit 9ee1643

Browse files
committed
Skip python test.
1 parent 117fb97 commit 9ee1643

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

python-package/xgboost/testing/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ def no_ipv6() -> PytestSkip:
9393
return {"condition": not has_ipv6(), "reason": "IPv6 is required to be enabled."}
9494

9595

96+
def no_unix() -> PytestSkip:
97+
"""PyTest skip mark for non-unix."""
98+
return {
99+
"condition": system() == "Windows",
100+
"reason": "unix system is required to be enabled.",
101+
}
102+
103+
96104
def no_ubjson() -> PytestSkip:
97105
return no_mod("ubjson")
98106

tests/python/test_demos.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def test_cross_validation_demo():
103103
subprocess.check_call(cmd)
104104

105105

106+
@pytest.mark.skipif(**tm.no_unix())
106107
def test_external_memory_demo():
107108
script = os.path.join(PYTHON_DEMO_DIR, 'external_memory.py')
108109
cmd = ['python', script]

0 commit comments

Comments
 (0)