summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-07-09 16:51:01 +0200
committerJürg Billeter <j@bitron.ch>2019-07-16 15:36:10 +0200
commitb0248da3b4b4d4d9a59636e442ffa6d647fe3dca (patch)
treebe0349e3da95e53fbb1c9067cf497f76040e58a5
parent0bfad0b0eac1400573f06b134583365f620f1a8e (diff)
downloadbuildstream-b0248da3b4b4d4d9a59636e442ffa6d647fe3dca.tar.gz
tests/internals/context.py: Use dummy_context()
-rw-r--r--tests/internals/context.py9
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
+ }
#######################################