Skip to content

Commit

Permalink
Fix minor linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vkottler committed May 15, 2024
1 parent 51d7e52 commit b72a32e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ coverage*.xml
tags
mklocal
docs
src
2 changes: 1 addition & 1 deletion config
7 changes: 5 additions & 2 deletions tests/test_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

# built-in
from contextlib import contextmanager
from contextlib import ExitStack, contextmanager
from multiprocessing import Process
import os
import signal
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b72a32e

Please sign in to comment.