tests: fix QrexecPolicyContext
Flush new policy file to the disk, otherwise it will stay only in write buffer.
This commit is contained in:
parent
3ddc052af3
commit
a469c565f4
@ -263,6 +263,7 @@ class _QrexecPolicyContext(object):
|
|||||||
self._handle.truncate(0)
|
self._handle.truncate(0)
|
||||||
self._handle.seek(0)
|
self._handle.seek(0)
|
||||||
self._handle.write(''.join(rules))
|
self._handle.write(''.join(rules))
|
||||||
|
self._handle.flush()
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
assert self._handle is not None
|
assert self._handle is not None
|
||||||
|
Loading…
Reference in New Issue
Block a user