Skip to content

Commit ba65910

Browse files
committed
fix: Test for default_value type
1 parent 79682ea commit ba65910

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_hyperparameters.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ def test_uniforminteger():
12701270
def test_uniformint_legal_float_values():
12711271
n_iter = UniformIntegerHyperparameter("n_iter", 5.0, 1000.0, default_value=20.0)
12721272

1273-
assert isinstance(n_iter.default_value, np.integer)
1273+
assert isinstance(n_iter.default_value, int)
12741274
with pytest.raises(
12751275
TypeError,
12761276
match=(
@@ -1550,7 +1550,7 @@ def test_normalint_legal_float_values():
15501550
lower=0,
15511551
upper=10,
15521552
)
1553-
assert isinstance(n_iter.default_value, np.integer)
1553+
assert isinstance(n_iter.default_value, int)
15541554
with pytest.raises(
15551555
TypeError,
15561556
match=(

0 commit comments

Comments
 (0)