Current File : //opt/imh-python/lib/python2.7/test/test_threading_local.pyo |
�
��Wc @ 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__( ( ( sr /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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 ( ( sr /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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( ( sr /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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( ( sr /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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( sr /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_threading_local.pyt __init__9 s ( R R R&