Skip to content

Commit

Permalink
fix pygmo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrosian committed Aug 21, 2024
1 parent c6b45fc commit 0f34d32
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/optimagic/optimization/test_pygmo_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pytest
from optimagic.optimizers.pygmo_optimizers import (
_convert_str_to_int,
_replace_none,
get_population_size,
)

Expand All @@ -30,8 +29,3 @@ def test_convert_str_to_int():
_convert_str_to_int(d, 5)
with pytest.raises(ValueError):
_convert_str_to_int(d, "hello")


def test_replace_none():
assert _replace_none(None, 5) == 5
assert _replace_none("a", 10) == "a"

0 comments on commit 0f34d32

Please sign in to comment.