Guest User

test_server

a guest
Feb 20th, 2026
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.72 KB | None | 0 0
  1. (openml) C:\Users\harsh\proj\openml-python>pytest -m "test_server" --durations=40
  2. ================================================ test session starts =================================================
  3. platform win32 -- Python 3.13.5, pytest-9.0.2, pluggy-1.6.0
  4. rootdir: C:\Users\harsh\proj\openml-python
  5. configfile: pyproject.toml
  6. testpaths: tests
  7. plugins: anyio-4.12.1, flaky-3.8.1, cov-7.0.0, mock-3.15.1, rerunfailures-16.1, timeout-2.4.0, xdist-3.8.0, requests-mock-1.12.1
  8. collected 368 items / 172 deselected / 196 selected
  9.  
  10. tests\test_datasets\test_dataset.py ........ [ 4%]
  11. tests\test_datasets\test_dataset_functions.py ...................s............................................. [ 37%]
  12. [ 37%]
  13. tests\test_evaluations\test_evaluation_functions.py .. [ 38%]
  14. tests\test_flows\test_flow.py ........ [ 42%]
  15. tests\test_flows\test_flow_functions.py .s..X [ 44%]
  16. tests\test_openml\test_api_calls.py ........ [ 48%]
  17. tests\test_runs\test_run.py ...... [ 52%]
  18. tests\test_runs\test_run_functions.py .................................s...... [ 72%]
  19. tests\test_setups\test_setup_functions.py ....... [ 76%]
  20. tests\test_study\test_study_functions.py ..... [ 78%]
  21. tests\test_tasks\test_classification_task.py ..... [ 81%]
  22. tests\test_tasks\test_clustering_task.py .. [ 82%]
  23. tests\test_tasks\test_learning_curve_task.py .... [ 84%]
  24. tests\test_tasks\test_regression_task.py ... [ 85%]
  25. tests\test_tasks\test_task_functions.py .....F.......... [ 93%]
  26. tests\test_tasks\test_task_methods.py .. [ 94%]
  27. tests\test_utils\test_utils.py .......... [100%]
  28.  
  29. ====================================================== FAILURES ======================================================
  30. _______________________________________________ TestTask.test_get_task _______________________________________________
  31.  
  32. self = <tests.test_tasks.test_task_functions.TestTask testMethod=test_get_task>
  33.  
  34. @pytest.mark.test_server()
  35. def test_get_task(self):
  36. task = openml.tasks.get_task(1, download_data=True) # anneal; crossvalidation
  37. assert isinstance(task, OpenMLTask)
  38. assert os.path.exists(
  39. os.path.join(openml.config.get_cache_directory(), "tasks", "1", "task.xml")
  40. )
  41. assert not os.path.exists(
  42. os.path.join(openml.config.get_cache_directory(), "tasks", "1", "datasplits.arff")
  43. )
  44. > assert os.path.exists(
  45. os.path.join(openml.config.get_cache_directory(), "datasets", "1", "dataset_1.pq")
  46. )
  47. E AssertionError: assert False
  48. E + where False = <built-in function _path_exists>('C:\\Users\\harsh\\proj\\openml-python\\openml\\tests.test_tasks.test_task_functions.TestTask.test_get_task\\org\\openml\\test\\datasets\\1\\dataset_1.pq')
  49. E + where <built-in function _path_exists> = <module 'ntpath' (frozen)>.exists
  50. E + where <module 'ntpath' (frozen)> = os.path
  51. E + and 'C:\\Users\\harsh\\proj\\openml-python\\openml\\tests.test_tasks.test_task_functions.TestTask.test_get_task\\org\\openml\\test\\datasets\\1\\dataset_1.pq' = <function join at 0x000001B1078FFF60>('C:\\Users\\harsh\\proj\\openml-python\\openml\\tests.test_tasks.test_task_functions.TestTask.test_get_task\\org\\openml\\test', 'datasets', '1', 'dataset_1.pq')
  52. E + where <function join at 0x000001B1078FFF60> = <module 'ntpath' (frozen)>.join
  53. E + where <module 'ntpath' (frozen)> = os.path
  54. E + and 'C:\\Users\\harsh\\proj\\openml-python\\openml\\tests.test_tasks.test_task_functions.TestTask.test_get_task\\org\\openml\\test' = <function get_cache_directory at 0x000001B10B6B3BA0>()
  55. E + where <function get_cache_directory at 0x000001B10B6B3BA0> = <module 'openml.config' from 'C:\\Users\\harsh\\proj\\openml-python\\openml\\config.py'>.get_cache_directory
  56. E + where <module 'openml.config' from 'C:\\Users\\harsh\\proj\\openml-python\\openml\\config.py'> = openml.config
  57.  
  58. tests\test_tasks\test_task_functions.py:166: AssertionError
  59. ------------------------------------------------- Captured log call --------------------------------------------------
  60. WARNING root:_api_calls.py:453 Received uncompressed content from OpenML for https://test.openml.org/data/v1/download/1/anneal.arff.
  61. ================================================== warnings summary ==================================================
  62. tests/test_runs/test_run_functions.py: 3 warnings
  63. tests/test_tasks/test_regression_task.py: 3 warnings
  64. tests/test_tasks/test_task_functions.py: 23 warnings
  65. tests/test_tasks/test_task_methods.py: 1 warning
  66. tests/test_utils/test_utils.py: 4 warnings
  67. C:\Users\harsh\proj\openml-python\openml\tasks\functions.py:283: RuntimeWarning: Could not create task type id for 10 due to error 10 is not a valid TaskType
  68. procs = _get_estimation_procedure_list()
  69.  
  70. tests/test_runs/test_run_functions.py: 3 warnings
  71. tests/test_tasks/test_regression_task.py: 3 warnings
  72. tests/test_tasks/test_task_functions.py: 23 warnings
  73. tests/test_tasks/test_task_methods.py: 1 warning
  74. tests/test_utils/test_utils.py: 4 warnings
  75. C:\Users\harsh\proj\openml-python\openml\tasks\functions.py:283: RuntimeWarning: Could not create task type id for 11 due to error 11 is not a valid TaskType
  76. procs = _get_estimation_procedure_list()
  77.  
  78. tests/test_runs/test_run_functions.py::TestRun::test_local_run_swapped_parameter_order_flow
  79. C:\Users\harsh\proj\openml-python\tests\test_runs\test_run_functions.py:1063: DeprecationWarning: The old argument order (Flow, model) is deprecated and will not be supported in the future. Please use the order (model, Flow).
  80. run = openml.runs.run_flow_on_task(
  81.  
  82. tests/test_runs/test_run_functions.py::TestRun::test_local_run_swapped_parameter_order_model
  83. C:\Users\harsh\proj\openml-python\tests\test_runs\test_run_functions.py:1034: DeprecationWarning: The old argument order (task, model) is deprecated and will not be supported in the future. Please use the order (model, task).
  84. run = openml.runs.run_model_on_task(
  85.  
  86. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
  87. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
  88. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
  89. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
  90. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
  91. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
  92. C:\Users\harsh\proj\openml-python\.venv\Lib\site-packages\sklearn\impute\_base.py:641: UserWarning: Skipping features without any observed values: ['m' 'marvi' 'exptl' 'corr' 'jurofm' 's' 'p']. At least one non-missing value is needed for imputation with strategy='most_frequent'.
  93. warnings.warn(
  94.  
  95. tests/test_runs/test_run_functions.py: 20 warnings
  96. C:\Users\harsh\proj\openml-python\openml\runs\functions.py:775: UserWarning: Estimator only predicted for 5/6 classes!
  97. ) = extension._run_model_on_fold(
  98.  
  99. tests/test_runs/test_run_functions.py: 24 warnings
  100. C:\Users\harsh\proj\openml-python\.venv\Lib\site-packages\sklearn\impute\_base.py:641: UserWarning: Skipping features without any observed values: ['bc' 'm' 'marvi' 'corr' 'jurofm' 's' 'p']. At least one non-missing value is needed for imputation with strategy='most_frequent'.
  101. warnings.warn(
  102.  
  103. tests/test_runs/test_run_functions.py: 24 warnings
  104. C:\Users\harsh\proj\openml-python\.venv\Lib\site-packages\sklearn\impute\_base.py:641: UserWarning: Skipping features without any observed values: ['m' 'marvi' 'corr' 'jurofm' 's' 'p']. At least one non-missing value is needed for imputation with strategy='most_frequent'.
  105. warnings.warn(
  106.  
  107. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
  108. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
  109. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
  110. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
  111. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
  112. tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
  113. C:\Users\harsh\proj\openml-python\.venv\Lib\site-packages\sklearn\impute\_base.py:641: UserWarning: Skipping features without any observed values: ['bc' 'm' 'marvi' 'exptl' 'corr' 'jurofm' 's' 'p']. At least one non-missing value is needed for imputation with strategy='most_frequent'.
  114. warnings.warn(
  115.  
  116. tests/test_tasks/test_classification_task.py::OpenMLClassificationTaskTest::test_get_X_and_Y
  117. C:\Users\harsh\AppData\Local\Programs\Python\Python313\Lib\unittest\case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method OpenMLSupervisedTaskTest.test_get_X_and_Y of <tests.test_tasks.test_classification_task.OpenMLClassificationTaskTest testMethod=test_get_X_and_Y>>)
  118. return self.run(*args, **kwds)
  119.  
  120. tests/test_tasks/test_classification_task.py::test_get_X_and_Y
  121. C:\Users\harsh\proj\openml-python\tests\test_tasks\test_classification_task.py:43: Pandas4Warning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, pd.CategoricalDtype) instead
  122. assert pd.api.types.is_categorical_dtype(Y)
  123.  
  124. tests/test_tasks/test_learning_curve_task.py::OpenMLLearningCurveTaskTest::test_get_X_and_Y
  125. C:\Users\harsh\proj\openml-python\tests\test_tasks\test_learning_curve_task.py:28: Pandas4Warning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, pd.CategoricalDtype) instead
  126. assert pd.api.types.is_categorical_dtype(Y)
  127.  
  128. tests/test_tasks/test_task_functions.py::TestTask::test__get_estimation_procedure_list
  129. C:\Users\harsh\proj\openml-python\tests\test_tasks\test_task_functions.py:54: RuntimeWarning: Could not create task type id for 10 due to error 10 is not a valid TaskType
  130. estimation_procedures = openml.tasks.functions._get_estimation_procedure_list()
  131.  
  132. tests/test_tasks/test_task_functions.py::TestTask::test__get_estimation_procedure_list
  133. C:\Users\harsh\proj\openml-python\tests\test_tasks\test_task_functions.py:54: RuntimeWarning: Could not create task type id for 11 due to error 11 is not a valid TaskType
  134. estimation_procedures = openml.tasks.functions._get_estimation_procedure_list()
  135.  
  136. tests/test_tasks/test_task_functions.py::TestTask::test_list_tasks
  137. tests/test_utils/test_utils.py::test_list_all
  138. tests/test_utils/test_utils.py::test_list_all_with_multiple_batches
  139. C:\Users\harsh\proj\openml-python\openml\tasks\functions.py:239: RuntimeWarning: Could not create task type id for 11 due to error 11 is not a valid TaskType
  140. return __list_tasks(api_call=api_call)
  141.  
  142. tests/test_tasks/test_task_functions.py::TestTask::test_list_tasks
  143. tests/test_utils/test_utils.py::test_list_all
  144. tests/test_utils/test_utils.py::test_list_all_with_multiple_batches
  145. C:\Users\harsh\proj\openml-python\openml\tasks\functions.py:239: RuntimeWarning: Could not create task type id for 10 due to error 10 is not a valid TaskType
  146. return __list_tasks(api_call=api_call)
  147.  
  148. -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
  149. ================================================ slowest 40 durations ================================================
  150. 87.80s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_gridsearch
  151. 69.04s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_data_edit_critical_field
  152. 63.33s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_maskedarrays
  153. 47.97s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_column_transformer_pipeline
  154. 44.03s call tests/test_runs/test_run.py::TestRun::test_offline_and_online_run_identical
  155. 41.60s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_randomsearch
  156. 38.38s call tests/test_runs/test_run.py::TestRun::test_publish_with_local_loaded_flow
  157. 33.33s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_data_edit_cannot_edit_critical_field_if_dataset_has_task
  158. 30.58s call tests/test_runs/test_run_functions.py::TestRun::test_learning_curve_task_2
  159. 29.56s call tests/test_runs/test_run_functions.py::TestRun::test__run_exists
  160. 28.93s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_linear_regression
  161. 27.00s call tests/test_tasks/test_task_functions.py::TestTask::test_list_tasks_paginate
  162. 26.44s call tests/test_runs/test_run_functions.py::TestRun::test_delete_run
  163. 26.10s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_logistic_regression
  164. 25.03s call tests/test_setups/test_setup_functions.py::TestSetupFunctions::test_exisiting_setup_exists_2
  165. 24.59s call tests/test_setups/test_setup_functions.py::TestSetupFunctions::test_existing_setup_exists_1
  166. 24.38s call tests/test_tasks/test_task_functions.py::TestTask::test_list_tasks_per_type_paginate
  167. 24.27s call tests/test_setups/test_setup_functions.py::TestSetupFunctions::test_existing_setup_exists_3
  168. 23.83s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_pipeline_dummy_pipeline
  169. 23.55s call tests/test_runs/test_run_functions.py::TestRun::test_learning_curve_task_1
  170. 20.89s call tests/test_flows/test_flow.py::TestFlow::test_publish_flow_with_similar_components
  171. 20.85s call tests/test_study/test_study_functions.py::TestStudyFunctions::test_publish_study
  172. 19.90s call tests/test_runs/test_run_functions.py::test_joblib_backends[-1-threading-10]
  173. 18.78s call tests/test_runs/test_run_functions.py::test_joblib_backends[1-None-10]
  174. 18.75s call tests/test_runs/test_run_functions.py::test_joblib_backends[1-threading-10]
  175. 18.59s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_create_dataset_row_id_attribute_inference
  176. 18.41s call tests/test_runs/test_run_functions.py::test_joblib_backends[1-sequential-10]
  177. 16.81s call tests/test_runs/test_run_functions.py::TestRun::test_initialize_model_from_run
  178. 16.76s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_publish_fetch_ignore_attribute
  179. 15.29s call tests/test_runs/test_run_functions.py::TestRun::test_initialize_cv_from_run
  180. 15.14s call tests/test_runs/test_run_functions.py::test_joblib_backends[2-None-0]
  181. 15.00s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_create_dataset_pandas
  182. 14.50s call tests/test_runs/test_run_functions.py::TestRun::test__run_task_get_arffcontent
  183. 14.20s call tests/test_runs/test_run_functions.py::test_joblib_backends[-1-None-0]
  184. 13.96s call tests/test_tasks/test_regression_task.py::OpenMLRegressionTaskTest::test_upload_task
  185. 13.62s call tests/test_runs/test_run_functions.py::TestRun::test_local_run_metric_score
  186. 13.53s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_list_datasets_paginate
  187. 13.29s call tests/test_runs/test_run_functions.py::TestRun::test_run_flow_on_task_downloaded_flow
  188. 13.18s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_create_dataset_sparse
  189. 12.97s call tests/test_runs/test_run.py::TestRun::test_to_from_filesystem_search
  190. ============================================== short test summary info ===============================================
  191. FAILED tests/test_tasks/test_task_functions.py::TestTask::test_get_task - AssertionError: assert False
  192. =========== 1 failed, 191 passed, 3 skipped, 172 deselected, 1 xpassed, 161 warnings in 1752.61s (0:29:12) ===========
  193.  
Advertisement
Add Comment
Please, Sign In to add comment