From: Victor Stinner Date: Tue, 5 Jul 2011 12:50:35 +0000 (+0200) Subject: Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing X-Git-Tag: v2.7.3rc1~632 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b78fed9ee6c74d1e0a6e30d3b73b4f44061e647f;p=thirdparty%2FPython%2Fcpython.git Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index a17f2f7640fe..f1163562e7a9 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):