Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
janosg committed Aug 21, 2024
1 parent daaa625 commit ab891e3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/optimagic/logging/test_sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,6 @@ def test_parallel_insert(self, store, executor_factory):
result_last = store.select_last_rows(5)
assert len(result_last) == 5

@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="On windows this results in a RuntimeError caused by a PermissionError",
)
def test_db_replacement_warning(self, store):
store.insert(self.create_test_point(245))
with pytest.warns(match="Existing database file"):
LogStore.from_options(
SQLiteLogOptions(
store._db_config.url.split("sqlite:///")[-1],
if_database_exists=ExistenceStrategy.REPLACE,
)
)

@pytest.mark.skipif(
not sys.platform.startswith("win"),
reason="On linux and macOS, this will result in a warning",
Expand Down

0 comments on commit ab891e3

Please sign in to comment.