%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_threading_local.pyc |
ó Nêáac @ sû d d l Z d d l m Z d d l m Z d d l Z d d l Z e j d ƒ Z e j d ƒ Z d d l Z d e f d „ ƒ YZ d „ Z d d d „ ƒ YZ d e j e f d „ ƒ YZ d e j e f d „ ƒ YZ d „ Z e d k r÷ e ƒ n d S( iÿÿÿÿN( t DocTestSuite( t test_supportt threadt threadingt Weakc B s e Z RS( ( t __name__t __module__( ( ( s5 /usr/local/lib/python2.7/test/test_threading_local.pyR s c C s, t ƒ } | | _ | j t j | ƒ ƒ d S( N( R t weakt appendt weakreft ref( t localt weaklistR ( ( s5 /usr/local/lib/python2.7/test/test_threading_local.pyt target s t BaseLocalTestc B sk e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s+ | j d ƒ | j d ƒ | j d ƒ d S( Ni i2 id ( t _local_refs( t self( ( s5 /usr/local/lib/python2.7/test/test_threading_local.pyt test_local_refs s c C s4 | j ƒ } g } xF t | ƒ D]8 } t j d t d | | f ƒ } | j ƒ | j ƒ q W~ t j ƒ | j t | ƒ | ƒ g | D] } | ƒ d k r… | ^ q… } | j t | ƒ | d | f ƒ d | _ t j ƒ g | D] } | ƒ d k rà | ^ qà } | j t | ƒ | d | f | t | ƒ f ƒ d S( NR t argsi ( t _localt rangeR t ThreadR t startt joint gct collectt assertEqualt lent Nonet assertInt someothervar( R t nR R t it tR t deadlist( ( s5 /usr/local/lib/python2.7/test/test_threading_local.pyR s ( (c sv d d l ‰ d ˆ j f ‡ f d † ƒ Y} | ƒ ‰ ‡ ‡ f d † ‰ t j ‡ f d † t d ƒ Dƒ ƒ Wd QXd S( Niÿÿÿÿt Localc s e Z ‡ f d † Z RS( c s ˆ j d ƒ d S( Ng{®Gáz„?( t sleep( R ( t time( s5 /usr/local/lib/python2.7/test/test_threading_local.pyt __init__9 s ( R R R&