]> granicus.if.org Git - python/commit
bpo-31731: Fix test_io.check_interrupted_write() (GH-11225)
authorVictor Stinner <vstinner@redhat.com>
Tue, 18 Dec 2018 22:52:39 +0000 (23:52 +0100)
committerGitHub <noreply@github.com>
Tue, 18 Dec 2018 22:52:39 +0000 (23:52 +0100)
commit05c9d31eb62cc45dc3c55a5cdb7cbc713d0421db
treeebab2882076c062d0515734909b4eef59430718b
parentb5c8cfa1da17c6f3acac80a0afca7f7104fb9589
bpo-31731: Fix test_io.check_interrupted_write() (GH-11225)

Fix a race condition in check_interrupted_write() of test_io:
create directly the thread with SIGALRM signal blocked,
rather than blocking the signal later from the thread. Previously, it
was possible that the thread gets the signal before the signal is
blocked.
Lib/test/test_io.py
Misc/NEWS.d/next/Tests/2018-12-18-23-20-39.bpo-31731.tcv85C.rst [new file with mode: 0644]