Commit 1d996aad authored by Luke Macken's avatar Luke Macken

Python 2.4 doesn't have subprocess.Popen.terminate

parent 540637f4
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
# Copyright (C) 2011, 2012 Red Hat, Inc. # Copyright (C) 2011, 2012 Red Hat, Inc.
import os import os
import signal
import unittest import unittest
import subprocess import subprocess
...@@ -30,7 +31,7 @@ class TestIPC(unittest.TestCase): ...@@ -30,7 +31,7 @@ class TestIPC(unittest.TestCase):
self.ipc = pyrasite.PyrasiteIPC(self.p.pid) self.ipc = pyrasite.PyrasiteIPC(self.p.pid)
def tearDown(self): def tearDown(self):
self.p.terminate() os.kill(self.p.pid, signal.SIGTERM)
self.ipc.close() self.ipc.close()
def test_listen(self): def test_listen(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment