Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions sklearn/datasets/tests/test_openml.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,15 +772,12 @@ def test_fetch_openml_iris(monkeypatch, gzip_response):
data_name = 'iris'

_monkey_patch_webbased_functions(monkeypatch, data_id, gzip_response)
assert_warns_message(
UserWarning,
"Multiple active versions of the dataset matching the name"
" iris exist. Versions may be fundamentally different, "
"returning version 1.",
fetch_openml,
name=data_name,
as_frame=False
)

msg = ("Multiple active versions of the dataset matching the name"
" iris exist. Versions may be fundamentally different, "
"returning version 1.")
with pytest.warns(UserWarning, match=msg):
fetch_openml(name=data_name, as_frame=False, cache=False)


def test_decode_iris(monkeypatch):
Expand Down