changeset: 70933:07655b3dee4f branch: 3.2 parent: 70929:52c5f80122dd user: Victor Stinner date: Thu Jun 23 11:57:56 2011 +0200 files: Lib/test/test_threadsignals.py description: Issue #11223: skip test_lock_acquire_interruption() on FreeBSD6 Locks are implemented using a mutex and a condition variable of the pthread library on FreeBSD6. POSIX condition variables cannot be interrupted by signals (see pthread_cond_wait manual page). diff -r 52c5f80122dd -r 07655b3dee4f Lib/test/test_threadsignals.py --- a/Lib/test/test_threadsignals.py Thu Jun 23 01:02:25 2011 +0200 +++ b/Lib/test/test_threadsignals.py Thu Jun 23 11:57:56 2011 +0200 @@ -70,6 +70,11 @@ def alarm_interrupt(self, sig, frame): raise KeyboardInterrupt + # Issue #11223: Locks are implemented using a mutex and a condition + # variable of the pthread library on FreeBSD6. POSIX condition variables + # cannot be interrupted by signals (see pthread_cond_wait manual page). + @unittest.skipIf(sys.platform == 'freebsd6', + 'POSIX condition variables cannot be interrupted') def test_lock_acquire_interruption(self): # Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck # in a deadlock.

AltStyle によって変換されたページ (->オリジナル) /