diff options
author | Jürg Billeter <j@bitron.ch> | 2019-07-09 16:51:01 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-07-16 15:36:10 +0200 |
commit | b0248da3b4b4d4d9a59636e442ffa6d647fe3dca (patch) | |
tree | be0349e3da95e53fbb1c9067cf497f76040e58a5 | |
parent | 0bfad0b0eac1400573f06b134583365f620f1a8e (diff) | |
download | buildstream-b0248da3b4b4d4d9a59636e442ffa6d647fe3dca.tar.gz |
tests/internals/context.py: Use dummy_context()
-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 + } ####################################### |