Skip to content

Commit

Permalink
Avoid sporadic internal warnings at teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Feb 23, 2024
1 parent 27db07a commit 682c309
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/boilercv_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from shutil import rmtree
from types import SimpleNamespace
from typing import Any, TypeAlias
from warnings import resetwarnings

import pytest
import pytest_harvest
Expand All @@ -36,6 +37,9 @@ def _project_session_path(tmp_path_factory):
path = get_session_path(tmp_path_factory, boilercv)
# We only have this for docs, and don't want to test it
(path / "data/sources/2023-09-20T17-14-18.nc").unlink()
yield
# Reset warnings at session teardown to avoid raising on internal warnings
resetwarnings()


# * -------------------------------------------------------------------------------- * #
Expand Down

0 comments on commit 682c309

Please sign in to comment.