summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-07-05 14:50:35 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-07-05 14:50:35 +0200
commitb78fed9ee6c74d1e0a6e30d3b73b4f44061e647f (patch)
treeab12963bd460e035a6d77b741c9a16ab2b77d08c
parente790131dc6f2e4c125f29c882e64f3c88a4210d1 (diff)
downloadcpython-git-b78fed9ee6c74d1e0a6e30d3b73b4f44061e647f.tar.gz
Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing
-rw-r--r--Lib/test/test_subprocess.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index a17f2f7640..f1163562e7 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -664,6 +664,8 @@ class _SuppressCoreFiles(object):
except (ImportError, ValueError, resource.error):
pass
+ @unittest.skipUnless(hasattr(signal, 'SIGALRM'),
+ "Requires signal.SIGALRM")
def test_communicate_eintr(self):
# Issue #12493: communicate() should handle EINTR
def handler(signum, frame):