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_weakref.pyc |
³ò h”Rc @ s} 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 e a d f d „ ƒ YZ d f d „ ƒ YZ d „ Z d „ Z d „ Z d e i f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d f d „ ƒ YZ d e f d „ ƒ YZ d d k l Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d Z h e d <Z d „ Z e d j o e ƒ n d S( iÿÿÿÿN( t test_supportt Cc B s e Z d „ Z RS( c C s d S( N( ( t self( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt method s ( t __name__t __module__R ( ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyR s t Callablec B s e Z d Z d „ Z RS( c C s | | _ d S( N( t bar( R t x( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt __call__ s N( R R t NoneR R ( ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyR s c C s d „ } | S( Nc S s d S( N( ( ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt f s ( ( R ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt create_function s c C s t ƒ i S( N( R R ( ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt create_bound_method s c C s t i S( N( R R ( ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt create_unbound_method s t TestBasec B s e Z d „ Z d „ Z RS( c C s d | _ d S( Ni ( t cbcalled( R ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt setUp% s c C s | i d 7_ d S( Ni ( R ( R t ref( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt callback( s ( R R R R ( ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyR # s t ReferencesTestCasec 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 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! RS( c C s] | i t ƒ | i t ƒ | i t ƒ | i t ƒ t ƒ } t i | ƒ } | ~ | d S( N( t check_basic_refR R R R t weakrefR ( R t ot wr( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt test_basic_ref. s c C s8 | i t ƒ | i t ƒ | i t ƒ | i t ƒ d S( N( t check_basic_callbackR R R R ( R ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt test_basic_callback= s c C s… t ƒ } t i | | i ƒ } t i | | i ƒ } ~ | i | ƒ d j d ƒ | i | ƒ d j d ƒ | i | i d j d ƒ d S( Ns$ expected reference to be invalidatedi s- callback not called the right number of times( R R R R t assert_R R ( R R t ref1t ref2( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt test_multiple_callbacksC s c C sC | d „ } t ƒ } t i | | ƒ | _ t i | | ƒ } ~ d S( Nc S s | i ƒ d S( N( R ( t objectR ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyR Z s ( R R R ( R R t cR ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt test_multiple_selfref_callbacksO s c C s° t ƒ } d | _ t i | | i ƒ } t i | | i ƒ } ~ d „ } | i t i | | ƒ | i t i | | ƒ | i t i t t i t ƒ ƒ ƒ | i | i d j ƒ d S( Ni c S s | i d S( N( R ( t proxy( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt checkh s i ( R R R R# R t assertRaisest ReferenceErrort boolR R ( R R R R R$ ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt test_proxy_refa s "c C sT | ƒ } t i | ƒ } | i | ƒ d j d ƒ | ƒ } | i | | j d ƒ d S( Ns, weak reference to live object should be lives- <ref>() should return original object if live( R R R R ( R t factoryR R t o2( ( s- /usr/local/lib/python2.5/test/test_weakref.pyR p s c C s` d | _ | ƒ } t i | | i ƒ } ~ | i | i d j d ƒ | i | ƒ d j d ƒ d S( Ni i s( callback did not properly set 'cbcalled's3 ref2 should be dead after deleting object reference( R R R R R R ( R R) R R ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyR y s c C sÝ t ƒ } t i | ƒ } t i | ƒ } t i | ƒ } | i | | j d ƒ t ƒ } t i | ƒ } t i | ƒ } t i | ƒ } | i | | j d ƒ | i t i | ƒ d j d ƒ ~ | i t i | ƒ d j d ƒ d S( Ns1 reference object w/out callback should be re-usedi s wrong weak ref count for objecti s4 wrong weak ref count for object after deleting proxy( R R R R# R t getweakrefcount( R R R R# R ( ( s- /usr/local/lib/python2.5/test/test_weakref.pyt test_ref_reuseƒ s"