diff options
-rw-r--r-- | tests/internals/context.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/internals/context.py b/tests/internals/context.py index da7b307d8..ddd558b6c 100644 --- a/tests/internals/context.py +++ b/tests/internals/context.py @@ -21,10 +21,11 @@ def context_fixture(): else: cache_home = os.path.expanduser('~/.cache') - return { - 'xdg-cache': cache_home, - 'context': Context() - } + with Context() as context: + yield { + 'xdg-cache': cache_home, + 'context': context + } ####################################### |