From 8083d6dece23fd8d85cef2b9c3b9f8c84e449dc3 Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Sun, 4 Feb 2018 14:03:12 +0100 Subject: [PATCH] qubes/tests: fix QubesTestCase.qrexec_policy The context manager left empty file. fixes QubesOS/qubes-issues#3535 --- qubes/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index a9553791..9c11cbfd 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -299,7 +299,7 @@ class _QrexecPolicyContext(object): def __enter__(self): rules = self.load() rules.insert(0, self._rule) - self.save(self._rule) + self.save(rules) return self def __exit__(self, exc_type, exc_value, tb):