[Python-checkins] cpython (2.7): Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing

victor.stinner python-checkins at python.org
Tue Jul 5 14:51:05 CEST 2011


http://hg.python.org/cpython/rev/8a4c9c154b5d
changeset:   71235:8a4c9c154b5d
branch:      2.7
parent:      71230:6a28ccde2f1b
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Tue Jul 05 14:50:35 2011 +0200
summary:
  Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing

files:
  Lib/test/test_subprocess.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -664,6 +664,8 @@
         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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list