From b0248da3b4b4d4d9a59636e442ffa6d647fe3dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Tue, 9 Jul 2019 16:51:01 +0200 Subject: tests/internals/context.py: Use dummy_context() --- tests/internals/context.py | 9 +++++---- 1 file 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 + } ####################################### -- cgit v1.2.1