]> granicus.if.org Git - python/commitdiff
Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 5 Jul 2011 12:49:46 +0000 (14:49 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 5 Jul 2011 12:49:46 +0000 (14:49 +0200)
Lib/test/test_subprocess.py

index 78e7a0e15f7648699dabda413b30105da8eb61dc..08f0ecfc1c4ed1681bc4142ddef2313306fafa71 100644 (file)
@@ -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):