fix test for python 2.5
This commit is contained in:
parent
4127215ef8
commit
6536cb2df8
1 changed files with 3 additions and 1 deletions
4
test.py
4
test.py
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import signal
|
||||
import sys
|
||||
import select
|
||||
import struct
|
||||
|
@ -117,7 +119,7 @@ try:
|
|||
finally:
|
||||
for p in [p1, p2]:
|
||||
try:
|
||||
p.kill()
|
||||
os.kill(p.pid, signal.SIGTERM)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue