summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/custodia.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/custodia.py b/tests/custodia.py
index 754c1b3..84dc554 100644
--- a/tests/custodia.py
+++ b/tests/custodia.py
@@ -27,10 +27,8 @@ class CustodiaTests(unittest.TestCase):
@classmethod
def tearDownClass(self):
- try:
- os.killpg(self.custodia_process.pid, signal.SIGTERM)
- except OSError:
- pass
+ self.custodia_process.kill()
+ self.custodia_process.wait()
for fname in ['server_socket', 'secrets.db']:
try:
os.unlink(fname)