From: Victor Stinner Date: Tue, 5 Jul 2011 12:49:46 +0000 (+0200) Subject: Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing X-Git-Tag: v3.2.2rc1~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1848db891bd7faf7d864f862fab8a052d35d8ec3;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 78e7a0e15f76..08f0ecfc1c4e 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -675,6 +675,8 @@ class ProcessTestCase(BaseTestCase): time.sleep(2) p.communicate(b"x" * 2**20) + @unittest.skipUnless(hasattr(signal, 'SIGALRM'), + "Requires signal.SIGALRM") def test_communicate_eintr(self): # Issue #12493: communicate() should handle EINTR def handler(signum, frame):