Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (openml) C:\Users\harsh\proj\openml-python>pytest -m "test_server" --durations=40
- ================================================ test session starts =================================================
- platform win32 -- Python 3.13.5, pytest-9.0.2, pluggy-1.6.0
- rootdir: C:\Users\harsh\proj\openml-python
- configfile: pyproject.toml
- testpaths: tests
- 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
- collected 368 items / 172 deselected / 196 selected
- tests\test_datasets\test_dataset.py ........ [ 4%]
- tests\test_datasets\test_dataset_functions.py ...................s............................................. [ 37%]
- [ 37%]
- tests\test_evaluations\test_evaluation_functions.py .. [ 38%]
- tests\test_flows\test_flow.py ........ [ 42%]
- tests\test_flows\test_flow_functions.py .s..X [ 44%]
- tests\test_openml\test_api_calls.py ........ [ 48%]
- tests\test_runs\test_run.py ...... [ 52%]
- tests\test_runs\test_run_functions.py .................................s...... [ 72%]
- tests\test_setups\test_setup_functions.py ....... [ 76%]
- tests\test_study\test_study_functions.py ..... [ 78%]
- tests\test_tasks\test_classification_task.py ..... [ 81%]
- tests\test_tasks\test_clustering_task.py .. [ 82%]
- tests\test_tasks\test_learning_curve_task.py .... [ 84%]
- tests\test_tasks\test_regression_task.py ... [ 85%]
- tests\test_tasks\test_task_functions.py .....F.......... [ 93%]
- tests\test_tasks\test_task_methods.py .. [ 94%]
- tests\test_utils\test_utils.py .......... [100%]
- ====================================================== FAILURES ======================================================
- _______________________________________________ TestTask.test_get_task _______________________________________________
- self = <tests.test_tasks.test_task_functions.TestTask testMethod=test_get_task>
- @pytest.mark.test_server()
- def test_get_task(self):
- task = openml.tasks.get_task(1, download_data=True) # anneal; crossvalidation
- assert isinstance(task, OpenMLTask)
- assert os.path.exists(
- os.path.join(openml.config.get_cache_directory(), "tasks", "1", "task.xml")
- )
- assert not os.path.exists(
- os.path.join(openml.config.get_cache_directory(), "tasks", "1", "datasplits.arff")
- )
- > assert os.path.exists(
- os.path.join(openml.config.get_cache_directory(), "datasets", "1", "dataset_1.pq")
- )
- E AssertionError: assert False
- 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')
- E + where <built-in function _path_exists> = <module 'ntpath' (frozen)>.exists
- E + where <module 'ntpath' (frozen)> = os.path
- 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')
- E + where <function join at 0x000001B1078FFF60> = <module 'ntpath' (frozen)>.join
- E + where <module 'ntpath' (frozen)> = os.path
- 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>()
- E + where <function get_cache_directory at 0x000001B10B6B3BA0> = <module 'openml.config' from 'C:\\Users\\harsh\\proj\\openml-python\\openml\\config.py'>.get_cache_directory
- E + where <module 'openml.config' from 'C:\\Users\\harsh\\proj\\openml-python\\openml\\config.py'> = openml.config
- tests\test_tasks\test_task_functions.py:166: AssertionError
- ------------------------------------------------- Captured log call --------------------------------------------------
- WARNING root:_api_calls.py:453 Received uncompressed content from OpenML for https://test.openml.org/data/v1/download/1/anneal.arff.
- ================================================== warnings summary ==================================================
- tests/test_runs/test_run_functions.py: 3 warnings
- tests/test_tasks/test_regression_task.py: 3 warnings
- tests/test_tasks/test_task_functions.py: 23 warnings
- tests/test_tasks/test_task_methods.py: 1 warning
- tests/test_utils/test_utils.py: 4 warnings
- 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
- procs = _get_estimation_procedure_list()
- tests/test_runs/test_run_functions.py: 3 warnings
- tests/test_tasks/test_regression_task.py: 3 warnings
- tests/test_tasks/test_task_functions.py: 23 warnings
- tests/test_tasks/test_task_methods.py: 1 warning
- tests/test_utils/test_utils.py: 4 warnings
- 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
- procs = _get_estimation_procedure_list()
- tests/test_runs/test_run_functions.py::TestRun::test_local_run_swapped_parameter_order_flow
- 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).
- run = openml.runs.run_flow_on_task(
- tests/test_runs/test_run_functions.py::TestRun::test_local_run_swapped_parameter_order_model
- 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).
- run = openml.runs.run_model_on_task(
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
- 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'.
- warnings.warn(
- tests/test_runs/test_run_functions.py: 20 warnings
- C:\Users\harsh\proj\openml-python\openml\runs\functions.py:775: UserWarning: Estimator only predicted for 5/6 classes!
- ) = extension._run_model_on_fold(
- tests/test_runs/test_run_functions.py: 24 warnings
- 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'.
- warnings.warn(
- tests/test_runs/test_run_functions.py: 24 warnings
- 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'.
- warnings.warn(
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_array
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
- tests/test_runs/test_run_functions.py::TestRun::test_run_on_dataset_with_missing_labels_dataframe
- 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'.
- warnings.warn(
- tests/test_tasks/test_classification_task.py::OpenMLClassificationTaskTest::test_get_X_and_Y
- 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>>)
- return self.run(*args, **kwds)
- tests/test_tasks/test_classification_task.py::test_get_X_and_Y
- 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
- assert pd.api.types.is_categorical_dtype(Y)
- tests/test_tasks/test_learning_curve_task.py::OpenMLLearningCurveTaskTest::test_get_X_and_Y
- 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
- assert pd.api.types.is_categorical_dtype(Y)
- tests/test_tasks/test_task_functions.py::TestTask::test__get_estimation_procedure_list
- 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
- estimation_procedures = openml.tasks.functions._get_estimation_procedure_list()
- tests/test_tasks/test_task_functions.py::TestTask::test__get_estimation_procedure_list
- 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
- estimation_procedures = openml.tasks.functions._get_estimation_procedure_list()
- tests/test_tasks/test_task_functions.py::TestTask::test_list_tasks
- tests/test_utils/test_utils.py::test_list_all
- tests/test_utils/test_utils.py::test_list_all_with_multiple_batches
- 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
- return __list_tasks(api_call=api_call)
- tests/test_tasks/test_task_functions.py::TestTask::test_list_tasks
- tests/test_utils/test_utils.py::test_list_all
- tests/test_utils/test_utils.py::test_list_all_with_multiple_batches
- 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
- return __list_tasks(api_call=api_call)
- -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- ================================================ slowest 40 durations ================================================
- 87.80s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_gridsearch
- 69.04s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_data_edit_critical_field
- 63.33s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_maskedarrays
- 47.97s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_column_transformer_pipeline
- 44.03s call tests/test_runs/test_run.py::TestRun::test_offline_and_online_run_identical
- 41.60s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_randomsearch
- 38.38s call tests/test_runs/test_run.py::TestRun::test_publish_with_local_loaded_flow
- 33.33s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_data_edit_cannot_edit_critical_field_if_dataset_has_task
- 30.58s call tests/test_runs/test_run_functions.py::TestRun::test_learning_curve_task_2
- 29.56s call tests/test_runs/test_run_functions.py::TestRun::test__run_exists
- 28.93s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_linear_regression
- 27.00s call tests/test_tasks/test_task_functions.py::TestTask::test_list_tasks_paginate
- 26.44s call tests/test_runs/test_run_functions.py::TestRun::test_delete_run
- 26.10s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_logistic_regression
- 25.03s call tests/test_setups/test_setup_functions.py::TestSetupFunctions::test_exisiting_setup_exists_2
- 24.59s call tests/test_setups/test_setup_functions.py::TestSetupFunctions::test_existing_setup_exists_1
- 24.38s call tests/test_tasks/test_task_functions.py::TestTask::test_list_tasks_per_type_paginate
- 24.27s call tests/test_setups/test_setup_functions.py::TestSetupFunctions::test_existing_setup_exists_3
- 23.83s call tests/test_runs/test_run_functions.py::TestRun::test_run_and_upload_pipeline_dummy_pipeline
- 23.55s call tests/test_runs/test_run_functions.py::TestRun::test_learning_curve_task_1
- 20.89s call tests/test_flows/test_flow.py::TestFlow::test_publish_flow_with_similar_components
- 20.85s call tests/test_study/test_study_functions.py::TestStudyFunctions::test_publish_study
- 19.90s call tests/test_runs/test_run_functions.py::test_joblib_backends[-1-threading-10]
- 18.78s call tests/test_runs/test_run_functions.py::test_joblib_backends[1-None-10]
- 18.75s call tests/test_runs/test_run_functions.py::test_joblib_backends[1-threading-10]
- 18.59s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_create_dataset_row_id_attribute_inference
- 18.41s call tests/test_runs/test_run_functions.py::test_joblib_backends[1-sequential-10]
- 16.81s call tests/test_runs/test_run_functions.py::TestRun::test_initialize_model_from_run
- 16.76s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_publish_fetch_ignore_attribute
- 15.29s call tests/test_runs/test_run_functions.py::TestRun::test_initialize_cv_from_run
- 15.14s call tests/test_runs/test_run_functions.py::test_joblib_backends[2-None-0]
- 15.00s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_create_dataset_pandas
- 14.50s call tests/test_runs/test_run_functions.py::TestRun::test__run_task_get_arffcontent
- 14.20s call tests/test_runs/test_run_functions.py::test_joblib_backends[-1-None-0]
- 13.96s call tests/test_tasks/test_regression_task.py::OpenMLRegressionTaskTest::test_upload_task
- 13.62s call tests/test_runs/test_run_functions.py::TestRun::test_local_run_metric_score
- 13.53s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_list_datasets_paginate
- 13.29s call tests/test_runs/test_run_functions.py::TestRun::test_run_flow_on_task_downloaded_flow
- 13.18s call tests/test_datasets/test_dataset_functions.py::TestOpenMLDataset::test_create_dataset_sparse
- 12.97s call tests/test_runs/test_run.py::TestRun::test_to_from_filesystem_search
- ============================================== short test summary info ===============================================
- FAILED tests/test_tasks/test_task_functions.py::TestTask::test_get_task - AssertionError: assert False
- =========== 1 failed, 191 passed, 3 skipped, 172 deselected, 1 xpassed, 161 warnings in 1752.61s (0:29:12) ===========
Advertisement
Add Comment
Please, Sign In to add comment