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

This commit is contained in:
Victor Stinner 2011-07-05 14:50:35 +02:00
parent e790131dc6
commit b78fed9ee6
1 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,8 @@ class _SuppressCoreFiles(object):
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):