File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
python-package/xgboost/testing Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ def no_ipv6() -> PytestSkip:
93
93
return {"condition" : not has_ipv6 (), "reason" : "IPv6 is required to be enabled." }
94
94
95
95
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
+
96
104
def no_ubjson () -> PytestSkip :
97
105
return no_mod ("ubjson" )
98
106
Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ def test_cross_validation_demo():
103
103
subprocess .check_call (cmd )
104
104
105
105
106
+ @pytest .mark .skipif (** tm .no_unix ())
106
107
def test_external_memory_demo ():
107
108
script = os .path .join (PYTHON_DEMO_DIR , 'external_memory.py' )
108
109
cmd = ['python' , script ]
You can’t perform that action at this time.
0 commit comments