From 58b1003a467bae4e52df3ed04e62aa6218c6bde3 Mon Sep 17 00:00:00 2001 From: karlicoss Date: Sat, 28 Jan 2023 07:59:58 +0000 Subject: [PATCH] core: properly dispose of sqlalchemy engine otherwise for some reason this was causing shm/wal turnds (and test_cache_paths to fail) the commit that 'broke' it is https://github.com/sqlalchemy/sqlalchemy/commit/22ed657827b487df9012def07271aed01bd4ae12 -- not sure what's up --- src/cachew/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cachew/__init__.py b/src/cachew/__init__.py index 12d18e0..ca3a042 100644 --- a/src/cachew/__init__.py +++ b/src/cachew/__init__.py @@ -599,6 +599,7 @@ def __enter__(self) -> 'DbHelper': def __exit__(self, *args) -> None: self.connection.close() + self.engine.dispose() HashFunction = Callable[..., SourceHash]