[Python-checkins] cpython (merge 3.2 -> default): (merge 3.2) Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is
victor.stinner
python-checkins at python.org
Tue Jul 5 14:51:05 CEST 2011
http://hg.python.org/cpython/rev/4928cf093a11
changeset: 71234:4928cf093a11
parent: 71232:2fbfb7ea362f
parent: 71233:807921ba241d
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Tue Jul 05 14:50:08 2011 +0200
summary:
(merge 3.2) 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
@@ -767,6 +767,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