Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_threadsignals.pyo |
³ò h”Rc @ s d Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k l Z l Z e i d d j p e i d j o e d e i ‚ n e i ƒ Z e i ƒ Z d „ Z d „ Z d „ Z d e i f d „ ƒ YZ d „ Z e d j o e ƒ n d S( s6 PyUnit testing that threads honor our signal semanticsiÿÿÿÿN( t run_unittestt TestSkippedi t wint os2t riscoss Can't test signal on %sc C s[ | \ } } } t i t i | ƒ } t i t i | ƒ } t i t i | ƒ } | | | f S( N( t signalt SIGUSR1t SIGUSR2t SIGALRM( t .0t for_usr1t for_usr2t for_alrmt usr1t usr2t alrm( ( s3 /usr/local/lib/python2.5/test/test_threadsignals.pyt registerSignals s c C s, t | d c d 7<t i ƒ t | d <d S( Nt trippedi t tripped_by( t signal_blackboardt threadt get_ident( t sigt frame( ( s3 /usr/local/lib/python2.5/test/test_threadsignals.pyt handle_signals s c C s4 t i t t i ƒ t i t t i ƒ t i ƒ d S( N( t ost killt process_pidR R R t signalled_allt release( ( ( s3 /usr/local/lib/python2.5/test/test_threadsignals.pyt send_signals s t ThreadSignalsc B s e Z d Z d „ Z d „ Z RS( sÞ Test signal handling semantics of threads. We spawn a thread, have the thread send two signals, and wait for it to finish. Check that we got both signals and that they were run by the main thread. c C sü t i ƒ | i ƒ t i ƒ t t i d d j p t t i d d j o( t i d ƒ t i ƒ t i d ƒ n | i t t i d d ƒ | i t t i d t i ƒ ƒ | i t t i d d ƒ | i t t i d t i ƒ ƒ t i ƒ d S( NR i i R ( R t acquiret spawnSignallingThreadR R R R t alarmt pauset assertEqualR R R ( t self( ( s3 /usr/local/lib/python2.5/test/test_threadsignals.pyt test_signals* s c C s t i t d ƒ d S( N( ( R t start_new_threadR ( R% ( ( s3 /usr/local/lib/python2.5/test/test_threadsignals.pyR! B s ( t __name__t __module__t __doc__R&