Current File : //opt/imh-python/lib/python2.7/test/test_gc.pyo |
�
��Wc @ s d d l Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z y d d l Z Wn e
k
r� e Z n Xd e f d � � YZ
d e f d � � YZ d e j f d � � YZ d e j f d
� � YZ d � Z e d k r� e � n d S(
i����N( t verboset run_unittestt
start_threadst C1055820c B s e Z d � Z RS( c C s | | _ | | _ d S( N( t it loop( t selfR ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyt __init__ s ( t __name__t
__module__R ( ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyR s t GC_Detectorc B s e Z d � Z RS( c s7 t � _ � f d � } t j t d � | � � _ d S( Nc s
t � _ d S( N( t Truet gc_happened( t ignored( R ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyt it_happened! s i� ( t FalseR t weakreft refR t wr( R R ( ( R se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyR s ( R R R ( ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyR
s t GCTestsc B s e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d
� Z d � Z
d � Z d
� Z d � Z d � Z d � Z d � Z e j e d � d � � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s: g } | j | � t j � ~ | j t j � d � d S( Ni ( t appendt gct collectt assertEqual( R t l( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyt test_list- s
c C s7 i } | | d <t j � ~ | j t j � d � d S( Ni ( R R R ( R t d( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyt test_dict4 s
c C sF g } | f } | j | � t j � ~ ~ | j t j � d � d S( Ni ( R R R R ( R R t t( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyt
test_tuple; s
c C sC d d d � � Y} | | _ t j � ~ | j t j � d � d S( Nt Ac B s e Z RS( ( R R ( ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyR F s i ( ( t aR R t assertNotEqual( R R ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyt
test_classE s
c C s= d t f d � � Y} t j � ~ | j t j � d � d S( NR c B s e Z RS( ( R R ( ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyR N s i ( t objectR R R ( R R ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyt test_newstyleclassM s
c C sL d d d � � Y} | � } | | _ t j � ~ | j t j � d � d S( NR c B s e Z RS( ( R R ( ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyR U s i ( ( R R R R ( R R R ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyt
test_instanceT s
c C s
d t f d � � Y} | � } | | _ t j � ~ | j t j � d � d t f d � � Y} d | | f d � � Y} | � } | | _ t j � ~ | j t j � d � ~ ~ | j t j � d � | � | _ ~ | j t j � d � | j t j � d � d S( NR c B s e Z RS( ( R R ( ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyR ^ s i t Bc B s e Z RS( ( R R ( ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyR% e s t Cc B s e Z RS( ( R R ( ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_gc.pyR&