Skip to content
Prev Previous commit
Next Next commit
Don't reconfigure server on setup/teardown, handled by fixture
  • Loading branch information
PGijsbers committed Jun 18, 2025
commit 09e6f8b53c569e0aecf56be44bb2f1a8660b3189
2 changes: 0 additions & 2 deletions openml/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def setUp(self, n_levels: int = 1, tmpdir_suffix: str = "") -> None:
self.cached = True
openml.config.apikey = TestBase.apikey
self.production_server = "https://www.openml.org/api/v1/xml"
openml.config.server = TestBase.test_server
openml.config.avoid_duplicate_runs = False
openml.config.set_root_cache_directory(str(self.workdir))

Expand All @@ -120,7 +119,6 @@ def tearDown(self) -> None:
# one of the files may still be used by another process
raise e

openml.config.server = self.production_server
openml.config.connection_n_retries = self.connection_n_retries
openml.config.retry_policy = self.retry_policy

Expand Down
1 change: 0 additions & 1 deletion tests/test_tasks/test_classification_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from __future__ import annotations

import pandas as pd
import pytest

from openml.tasks import TaskType, get_task

Expand Down
Loading