mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-09 23:10:24 +01:00
test: close pools on tests cleanup
This avoids weird errors as pools are collected by gc in broken env.
This commit is contained in:
@@ -169,3 +169,11 @@ def erepo(repo_dir):
|
||||
yield repo
|
||||
finally:
|
||||
repo.tearDown()
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def _close_pools():
|
||||
from dvc.remote.pool import close_pools
|
||||
|
||||
yield
|
||||
close_pools()
|
||||
|
||||
Reference in New Issue
Block a user