diff --git a/tests/integration/shell/test_syndic.py b/tests/integration/shell/test_syndic.py index 5abd7e5e785..43280af26d8 100644 --- a/tests/integration/shell/test_syndic.py +++ b/tests/integration/shell/test_syndic.py @@ -10,7 +10,6 @@ # Import python libs from __future__ import absolute_import import os -import signal import shutil import logging @@ -29,6 +28,9 @@ import salt.utils.platform log = logging.getLogger(__name__) +SIGKILL = 9 + + class SyndicTest(ShellCase, testprogram.TestProgramCase, ShellCaseCommonTestsMixin): ''' Test the salt-syndic command @@ -72,7 +74,7 @@ class SyndicTest(ShellCase, testprogram.TestProgramCase, ShellCaseCommonTestsMix if os.path.exists(pid_path): with salt.utils.files.fopen(pid_path) as fhr: try: - os.kill(int(fhr.read()), signal.SIGKILL) + os.kill(int(fhr.read()), SIGKILL) except OSError: pass try: