diff --git a/.gitignore b/.gitignore index 1b819fe..6e8f4ca 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ coverage*.xml tags mklocal docs +src diff --git a/config b/config index cc472ae..117336e 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit cc472ae7257da9c95a2059d7d9134ef880eeb43b +Subproject commit 117336ef886174ba499b37eae7c7e17aaa892047 diff --git a/tests/test_entry.py b/tests/test_entry.py index 7e19f25..3d6317c 100644 --- a/tests/test_entry.py +++ b/tests/test_entry.py @@ -3,7 +3,7 @@ """ # built-in -from contextlib import contextmanager +from contextlib import ExitStack, contextmanager from multiprocessing import Process import os import signal @@ -98,8 +98,11 @@ def target_tests( if irrelevant is None: irrelevant = set() - with build_cleaned_resource(scenario) as test_dir: + with ExitStack() as stack: + test_dir = stack.enter_context(build_cleaned_resource(scenario)) + yield test_dir + for target in passes: target_test(target, test_dir, True, target not in irrelevant) for target in fails: