(merge 3.2) Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing

This commit is contained in:
Victor Stinner 2011-07-05 14:50:08 +02:00
commit 5351a1f956
1 changed files with 2 additions and 0 deletions

View File

@ -767,6 +767,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):