Skip to content

Commit

Permalink
Exclude some Xgboost tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mn-mikke committed Sep 20, 2023
1 parent ba2cf76 commit 7e15567
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def comparison_test():
if sys.version_info.major == 2:
print("native XGBoost tests only supported on python3")
return
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("native XGBoost tests only doesn't run on Python 3.9 for now.")
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
print("native XGBoost tests only doesn't run on Python 3.{0} for now.".format(sys.version_info.minor))
return
import xgboost as xgb
assert H2OXGBoostEstimator.available() is True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def comparison_test():
if sys.version_info.major == 2:
print("native XGBoost tests only supported on python3")
return
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("native XGBoost tests only doesn't run on Python 3.9 for now.")
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
print("native XGBoost tests only doesn't run on Python 3.{0} for now.".format(sys.version_info.minor))
return
import xgboost as xgb
assert H2OXGBoostEstimator.available() is True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def comparison_test_dense():
if sys.version_info.major == 2:
print("native XGBoost tests only supported on python3")
return
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("native XGBoost tests only doesn't run on Python 3.9 for now.")
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
print("native XGBoost tests only doesn't run on Python 3.{0} for now.".format(sys.version_info.minor))
return
import xgboost as xgb
assert H2OXGBoostEstimator.available() is True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def comparison_test_dense():
if sys.version_info.major == 2:
print("native XGBoost tests only supported on python3")
return
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("native XGBoost tests only doesn't run on Python 3.9 for now.")
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
print("native XGBoost tests only doesn't run on Python 3.{0} for now.".format(sys.version_info.minor))
return
import xgboost as xgb
assert H2OXGBoostEstimator.available() is True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def comparison_test_dense():
if sys.version_info.major == 2:
print("native XGBoost tests only supported on python3")
return
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("native XGBoost tests only doesn't run on Python 3.9 for now.")
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
print("native XGBoost tests only doesn't run on Python 3.{0} for now.".format(sys.version_info.minor))
return
import xgboost as xgb
assert H2OXGBoostEstimator.available() is True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def comparison_test_dense():
if sys.version_info.major == 2:
print("native XGBoost tests only supported on python3")
return
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("native XGBoost tests only doesn't run on Python 3.9 for now.")
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
print("native XGBoost tests only doesn't run on Python 3.{0} for now.".format(sys.version_info.minor))
return
import xgboost as xgb
assert H2OXGBoostEstimator.available() is True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def comparison_test_dense():
if sys.version_info.major == 2:
print("native XGBoost tests only supported on python3")
return
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("native XGBoost tests only doesn't run on Python 3.9 for now.")
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
print("native XGBoost tests only doesn't run on Python 3.{0} for now.".format(sys.version_info.minor))
return
import xgboost as xgb
assert H2OXGBoostEstimator.available() is True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def comparison_test_dense():
if sys.version_info.major == 2:
print("native XGBoost tests only supported on python3")
return
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("native XGBoost tests only doesn't run on Python 3.9 for now.")
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
print("native XGBoost tests only doesn't run on Python 3.{0} for now.".format(sys.version_info.minor))
return
import xgboost as xgb
assert H2OXGBoostEstimator.available() is True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def comparison_test():
if sys.version_info.major == 2:
print("native XGBoost tests only supported on python3")
return
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("native XGBoost tests only doesn't run on Python 3.9 for now.")
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
print("native XGBoost tests only doesn't run on Python 3.{0} for now.".format(sys.version_info.minor))
return
import xgboost as xgb
assert H2OXGBoostEstimator.available() is True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def comparison_test():
if sys.version_info.major == 2:
print("native XGBoost tests only supported on python3")
return
if sys.version_info.major == 3 and sys.version_info.minor == 9:
print("native XGBoost tests only doesn't run on Python 3.9 for now.")
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
print("native XGBoost tests only doesn't run on Python 3.{0} for now.".format(sys.version_info.minor))
return
import xgboost as xgb
assert H2OXGBoostEstimator.available() is True
Expand Down

0 comments on commit 7e15567

Please sign in to comment.