cpython: 5d0d488cbca8 (original) (raw)

Mercurial > cpython

changeset 68421:5d0d488cbca8 3.2

Issue #11223: Fix test_threadsignals to fail, not hang, when the non-semaphore implementation of locks is used under POSIX. [#11223]

Antoine Pitrou solipsis@pitrou.net
date Sun, 13 Mar 2011 19:14:21 +0100
parents 4a68f4cfbdc8
children f197dac00f43 eb8c2f43b251
files Lib/test/test_threadsignals.py Misc/NEWS
diffstat 2 files changed, 20 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_threadsignals.py 19 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/test/test_threadsignals.py +++ b/Lib/test/test_threadsignals.py @@ -73,18 +73,29 @@ class ThreadSignals(unittest.TestCase): def test_lock_acquire_interruption(self): # Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck # in a deadlock.

def test_rlock_acquire_interruption(self): # Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck # in a deadlock.

@@ -98,7 +109,11 @@ class ThreadSignals(unittest.TestCase): rlock.release() time.sleep(0.01) signal.alarm(1)

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -92,6 +92,9 @@ Tools/Demos Tests ----- +- Issue #11223: Fix test_threadsignals to fail, not hang, when the