Skip to content

Commit 3c7a3b7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0cdf8e4 commit 3c7a3b7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

adaptive/tests/unit/test_learnernd.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,16 @@ def missing_holoviews(name):
163163
raise ModuleNotFoundError
164164
return import_module(name)
165165

166-
monkeypatch.setattr(notebook_integration.importlib, "import_module", missing_holoviews)
166+
monkeypatch.setattr(
167+
notebook_integration.importlib, "import_module", missing_holoviews
168+
)
167169

168170
learner = make_1d_learner()
169171
tell_1d_points(learner)
170172

171-
with pytest.raises(RuntimeError, match="holoviews is not installed; plotting is disabled."):
173+
with pytest.raises(
174+
RuntimeError, match="holoviews is not installed; plotting is disabled."
175+
):
172176
learner.plot()
173177

174178

0 commit comments

Comments
 (0)