From 00c7ccfaa01f0df8c3acc40374e0826c0b56dfd5 Mon Sep 17 00:00:00 2001 From: hpk Date: Sun, 11 Feb 2007 19:56:08 +0100 Subject: [PATCH] [svn r38508] skip signal detection tests for python < 2.4 (2.4 and 2.5 work apparently) --HG-- branch : trunk --- py/test/rsession/testing/test_boxing.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/py/test/rsession/testing/test_boxing.py b/py/test/rsession/testing/test_boxing.py index c3eecd1c7..80c3dcd9a 100644 --- a/py/test/rsession/testing/test_boxing.py +++ b/py/test/rsession/testing/test_boxing.py @@ -38,8 +38,10 @@ def test_boxing_on_fds(): def test_boxing_signal(): b = Box(example2.boxseg, config=config) b.run() - assert b.signal == 11 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(): b = Box(example2.boxhuge, config=config) @@ -88,4 +90,6 @@ def test_box_killer(): par, pid = b.run(continuation=True) os.kill(pid, 15) 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