[Python-checkins] cpython (3.2): Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing
victor.stinner
python-checkins at python.org
Tue Jul 5 14:51:04 CEST 2011
http://hg.python.org/cpython/rev/807921ba241d
changeset: 71233:807921ba241d
branch: 3.2
parent: 71231:8b62f5d722f4
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Tue Jul 05 14:49:46 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
@@ -675,6 +675,8 @@
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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list