diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-07-05 14:49:46 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-07-05 14:49:46 +0200 |
commit | 1848db891bd7faf7d864f862fab8a052d35d8ec3 (patch) | |
tree | af75b6360963c240c860e45613db33f71193e17e | |
parent | 91e08772a6da22166a2ad4ee52fecaf80df9e5e9 (diff) | |
download | cpython-git-1848db891bd7faf7d864f862fab8a052d35d8ec3.tar.gz |
Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing
-rw-r--r-- | 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 index 78e7a0e15f..08f0ecfc1c 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -675,6 +675,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): |