Skip to content

Commit

Permalink
fixup: cover finishederror
Browse files Browse the repository at this point in the history
  • Loading branch information
fizyk committed Aug 18, 2020
1 parent 41643d4 commit 64cc8cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pytest_postgresql/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import tempfile
import time

from mirakuru.exceptions import ProcessFinishedWithError
from pkg_resources import parse_version
from mirakuru import TCPExecutor
from mirakuru.base import ExecutorType
Expand Down Expand Up @@ -221,7 +222,10 @@ def stop(self,
datadir=self.datadir,
),
shell=True)
super().stop(sig, exp_sig)
try:
super().stop(sig, exp_sig)
except ProcessFinishedWithError:
pass

def __del__(self):
"""Make sure the directories are properly removed at the end."""
Expand Down

0 comments on commit 64cc8cd

Please sign in to comment.