diff --git a/satpy/tests/test_readers.py b/satpy/tests/test_readers.py index 3e54a93592..db3d1ccb1d 100644 --- a/satpy/tests/test_readers.py +++ b/satpy/tests/test_readers.py @@ -977,7 +977,7 @@ def _local_file(tmp_path_factory, filename: str) -> Iterator[Path]: tmp_path = tmp_path_factory.mktemp("local_files") local_filename = tmp_path / filename local_filename.touch() - return local_filename + yield local_filename @pytest.fixture(scope="module")