Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1848db8

Browse files
author
Victor Stinner
committed
Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing
1 parent 91e0877 commit 1848db8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_subprocess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,8 @@ def test_communicate_epipe_only_stdin(self):
675675
time.sleep(2)
676676
p.communicate(b"x" * 2**20)
677677

678+
@unittest.skipUnless(hasattr(signal, 'SIGALRM'),
679+
"Requires signal.SIGALRM")
678680
def test_communicate_eintr(self):
679681
# Issue #12493: communicate() should handle EINTR
680682
def handler(signum, frame):

0 commit comments

Comments
 (0)