From 7e1556718e82444f9741469c3865b9f852fb2f7e Mon Sep 17 00:00:00 2001 From: Marek Novotny Date: Wed, 20 Sep 2023 17:13:15 +0200 Subject: [PATCH] Exclude some Xgboost tests --- ..._native_XGBoost_enum_binomial_compare_sparse_singleNode.py | 4 ++-- ...tive_XGBoost_enum_multinomial_compare_sparse_singleNode.py | 4 ++-- ...e_XGBoost_mixed_binomial_compare_large_dense_singleNode.py | 4 ++-- ..._XGBoost_mixed_binomial_compare_large_sparse_singleNode.py | 4 ++-- ...GBoost_mixed_multinomial_compare_large_dense_singleNode.py | 4 ++-- ...Boost_mixed_multinomial_compare_large_sparse_singleNode.py | 4 ++-- ...XGBoost_mixed_regression_compare_large_dense_singleNode.py | 4 ++-- ...GBoost_mixed_regression_compare_large_sparse_singleNode.py | 4 ++-- ...ve_XGBoost_numerical_binomial_compare_sparse_singleNode.py | 4 ++-- .../xgboost/pyunit_PUBDEV_6117_xgboost_compare.py | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_enum_binomial_compare_sparse_singleNode.py b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_enum_binomial_compare_sparse_singleNode.py index 551cc1328e19..430e63a54372 100644 --- a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_enum_binomial_compare_sparse_singleNode.py +++ b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_enum_binomial_compare_sparse_singleNode.py @@ -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 diff --git a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_enum_multinomial_compare_sparse_singleNode.py b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_enum_multinomial_compare_sparse_singleNode.py index b654d8d07d76..a8970982e52d 100644 --- a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_enum_multinomial_compare_sparse_singleNode.py +++ b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_enum_multinomial_compare_sparse_singleNode.py @@ -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 diff --git a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_binomial_compare_large_dense_singleNode.py b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_binomial_compare_large_dense_singleNode.py index c450abd0fdb3..5c1fa98f37ef 100644 --- a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_binomial_compare_large_dense_singleNode.py +++ b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_binomial_compare_large_dense_singleNode.py @@ -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 diff --git a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_binomial_compare_large_sparse_singleNode.py b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_binomial_compare_large_sparse_singleNode.py index 932ab4318406..ba9bb5d0d709 100644 --- a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_binomial_compare_large_sparse_singleNode.py +++ b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_binomial_compare_large_sparse_singleNode.py @@ -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 diff --git a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_multinomial_compare_large_dense_singleNode.py b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_multinomial_compare_large_dense_singleNode.py index c9ea87d6ef2e..6c8f8a016d52 100644 --- a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_multinomial_compare_large_dense_singleNode.py +++ b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_multinomial_compare_large_dense_singleNode.py @@ -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 diff --git a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_multinomial_compare_large_sparse_singleNode.py b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_multinomial_compare_large_sparse_singleNode.py index e08d634be6f4..53ba6ee773c9 100644 --- a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_multinomial_compare_large_sparse_singleNode.py +++ b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_multinomial_compare_large_sparse_singleNode.py @@ -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 diff --git a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_regression_compare_large_dense_singleNode.py b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_regression_compare_large_dense_singleNode.py index 206e768e462b..e3b6d9b5581c 100644 --- a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_regression_compare_large_dense_singleNode.py +++ b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_regression_compare_large_dense_singleNode.py @@ -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 diff --git a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_regression_compare_large_sparse_singleNode.py b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_regression_compare_large_sparse_singleNode.py index 4254ec9cd74f..41f823a97e48 100644 --- a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_regression_compare_large_sparse_singleNode.py +++ b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_mixed_regression_compare_large_sparse_singleNode.py @@ -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 diff --git a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_numerical_binomial_compare_sparse_singleNode.py b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_numerical_binomial_compare_sparse_singleNode.py index 074e87e4b710..04edaea59cbb 100644 --- a/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_numerical_binomial_compare_sparse_singleNode.py +++ b/h2o-py/tests/testdir_algos/xgboost/pyunit_H2OXGBoost_native_XGBoost_numerical_binomial_compare_sparse_singleNode.py @@ -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 diff --git a/h2o-py/tests/testdir_algos/xgboost/pyunit_PUBDEV_6117_xgboost_compare.py b/h2o-py/tests/testdir_algos/xgboost/pyunit_PUBDEV_6117_xgboost_compare.py index eb748d33610c..ab4865897eaa 100644 --- a/h2o-py/tests/testdir_algos/xgboost/pyunit_PUBDEV_6117_xgboost_compare.py +++ b/h2o-py/tests/testdir_algos/xgboost/pyunit_PUBDEV_6117_xgboost_compare.py @@ -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