Skip to content

Commit 9e52ecb

Browse files
committed
Add type-hints to adaptive/tests/test_learners.py
1 parent 54265bb commit 9e52ecb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adaptive/tests/test_learners.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import flaky
1414
import numpy as np
15+
import pandas
1516
import pytest
1617
import scipy.spatial
1718

@@ -27,7 +28,6 @@
2728
LearnerND,
2829
SequenceLearner,
2930
)
30-
from adaptive.learner.learner1D import with_pandas
3131
from adaptive.runner import simple
3232

3333
try:
@@ -708,7 +708,6 @@ def wrapper(*args, **kwargs):
708708
return wrapper
709709

710710

711-
@pytest.mark.skipif(not with_pandas, reason="pandas is not installed")
712711
@run_with(
713712
Learner1D,
714713
Learner2D,
@@ -720,8 +719,6 @@ def wrapper(*args, **kwargs):
720719
with_all_loss_functions=False,
721720
)
722721
def test_to_dataframe(learner_type, f, learner_kwargs):
723-
import pandas
724-
725722
if learner_type is LearnerND:
726723
kw = {"point_names": tuple("xyz")[: len(learner_kwargs["bounds"])]}
727724
else:

0 commit comments

Comments
 (0)