Skip to content

Commit

Permalink
Fix memory leak in metadata cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorkertesz committed Sep 5, 2024
1 parent ac409ad commit 25282f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/grib/test_grib_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

from earthkit.data import from_source
from earthkit.data import settings
from earthkit.data.readers.grib.index import GribResourceManager
from earthkit.data.testing import earthkit_examples_file


Expand All @@ -40,6 +39,8 @@ def __len__(self):

@pytest.fixture
def patch_metadata_cache(monkeypatch):
from earthkit.data.readers.grib.index import GribResourceManager

def patched_make_metadata_cache(self):
return TestMetadataCache()

Expand Down

0 comments on commit 25282f5

Please sign in to comment.