[svn r38508] skip signal detection tests for python < 2.4

(2.4 and 2.5 work apparently)

--HG--
branch : trunk
This commit is contained in:
hpk 2007-02-11 19:56:08 +01:00
parent ff9df3c079
commit 00c7ccfaa0
1 changed files with 5 additions and 1 deletions

View File

@ -38,8 +38,10 @@ def test_boxing_on_fds():
def test_boxing_signal(): def test_boxing_signal():
b = Box(example2.boxseg, config=config) b = Box(example2.boxseg, config=config)
b.run() b.run()
assert b.signal == 11
assert b.retval is None assert b.retval is None
if py.std.sys.version_info < (2,4):
py.test.skip("signal detection does not work with python prior 2.4")
assert b.signal == 11
def test_boxing_huge_data(): def test_boxing_huge_data():
b = Box(example2.boxhuge, config=config) b = Box(example2.boxhuge, config=config)
@ -88,4 +90,6 @@ def test_box_killer():
par, pid = b.run(continuation=True) par, pid = b.run(continuation=True)
os.kill(pid, 15) os.kill(pid, 15)
par(pid) par(pid)
if py.std.sys.version_info < (2,4):
py.test.skip("signal detection does not work with python prior 2.4")
assert b.signal == 15 assert b.signal == 15