-í
•‚É<c      s0     d  k  l Z  d k Z  d k Z  d k Z  d k Z 
 d f  d „  ƒ  YZ ' d e f d „  ƒ  YZ D d e i f d „  ƒ  YZ	 L d e	 f d	 „  ƒ  YZ
 d
 e	 f d „  ƒ  YZ <d „  Z Dd „  Z He e ƒ Z Ke d „ Z Td „  Z Yd „  Z ae d j o be ƒ  n d S(   (   s
   generatorsNs   HookWatcherc     s8   
  d „  Z   d „  Z  e d „ Z  d „  Z RS(   Nc   s     g  |  _  g  |  _ d  S(   N(   s   selfs   framess   events(   s   self(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   __init__ s   c   s     |  i | | ƒ d  S(   N(   s   selfs	   add_events   events   frame(   s   selfs   frames   events   arg(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   callback s   c   s¬      | t j o  t i d ƒ } n  y  |  i i | ƒ } Wn;  t j
 o,  t	 |  i ƒ }  |  i i
 | ƒ n X |  i i
 | | t | ƒ f ƒ d S(   s   Add an event to the log.i   N(   s   frames   Nones   syss	   _getframes   selfs   framess   indexs   framenos
   ValueErrors   lens   appends   eventss   events   ident(   s   selfs   events   frames   frameno(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys	   add_event s   c   s}      ! t  |  i i ƒ t  t  ƒ g } " t |  _ $ g  i } |  i	 D$ ]( } $ | d | j o | | ƒ n qG ~ Sd S(   s   Remove calls to add_event().i   N(   s   idents   selfs	   add_events   im_funcs
   disalloweds   Nones   framess   appends   _[1]s   eventss   item(   s   selfs   _[1]s   items
   disallowed(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys
   get_events s   ! 	 (   s   __init__s   callbacks   Nones	   add_events
   get_events(    (    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   HookWatcher
 s   s   ProfileSimulatorc     se   ' ( d „  Z  - d „  Z 1 d „  Z 5 d „  Z 9 d „  Z = h  e d <e d <e d <Z RS(	   Nc   s/   ( ) | |  _  * g  |  _ + t i |  ƒ d  S(   N(   s   testcases   selfs   stacks   HookWatchers   __init__(   s   selfs   testcase(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   __init__( s   c   s   - / |  i | |  | ƒ d  S(   N(   s   selfs   dispatchs   events   frame(   s   selfs   frames   events   arg(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   callback- s   c   s-   1 2 |  i d | ƒ 3 |  i i | ƒ d  S(   Ns   call(   s   selfs	   add_events   frames   stacks   append(   s   selfs   frame(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys
   trace_call1 s   c   s*   5 6 |  i d | ƒ 7 |  i i ƒ  d  S(   Ns   return(   s   selfs	   add_events   frames   stacks   pop(   s   selfs   frame(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   trace_return5 s   c   s   9 : |  i i d ƒ d  S(   Ns2   the profiler should never receive exception events(   s   selfs   testcases   fail(   s   selfs   frame(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   trace_exception9 s   s   calls	   exceptions   return(   s   __init__s   callbacks
   trace_calls   trace_returns   trace_exceptions   dispatch(    (    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   ProfileSimulator' s   s   TestCaseBasec     s   D E d „  Z  RS(   Nc   s_   E F t  | |  i ƒ  ƒ } G | | j o0 H |  i d t i | ƒ t i | ƒ f ƒ n d  S(   Ns'   Expected events:
%s
Received events:
%s(	   s   capture_eventss   callables   selfs   new_watchers   eventss   expecteds   fails   pprints   pformat(   s   selfs   callables   expecteds   events(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   check_eventsE s   (   s   check_events(    (    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   TestCaseBaseD s   s   ProfileHookTestCasec     s­   L M d „  Z  P d „  Z X d „  Z ` d „  Z i d „  Z r d „  Z } d „  Z  d „  Z Ÿ d	 „  Z ¨ d
 „  Z	 ± d „  Z
 ¹ d „  Z Õ d „  Z ë d „  Z RS(   Nc   s   M N t  ƒ  Sd  S(   N(   s   HookWatcher(   s   self(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   new_watcherM s   c   sM   P Q d „  } S t | ƒ } T |  i | d d | f d d | f g ƒ d  S(   Nc   s
   Q R d  S(   N(    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fQ s   i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_simpleP s   c   sM   X Y d „  } [ t | ƒ } \ |  i | d d | f d d | f g ƒ d  S(   Nc   s   Y Z d d d  S(   Ni   i    (    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fY s   i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_exceptionX s   c   sM   ` a d „  } d t | ƒ } e |  i | d d | f d d | f g ƒ d  S(   Nc   s)   a b y b d d Wn c c n Xd  S(   Ni   i    (    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fa s     i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_caught_exception` s   c   sM   i j d „  } m t | ƒ } n |  i | d d | f d d | f g ƒ d  S(   Nc   s)   j k y k d d Wn l l n Xd  S(   Ni   i    (    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fj s     i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_caught_nested_exceptioni s   c   sM   r s d „  } u t | ƒ } v |  i | d d | f d d | f g ƒ d  S(   Nc   s   s t d d d  S(   Ni   i    (    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fs s   i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_nested_exceptionr s   c   s›   } ~ d „  ‰  € ‡  d †  } † t ˆ  ƒ } ‡ t | ƒ } ˆ |  i | d d | f d d | f d d | f d d | f d d | f d d | f g ƒ d  S(   Nc   s   ~  d d d  S(   Ni   i    (    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   f~ s   c   sL   €  y ‚ ˆ  |  ƒ Wn. ƒ „ y „ ˆ  |  ƒ Wn … … n Xn Xd  S(   N(   s   fs   p(   s   p(   s   f(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   g€ s     i   s   calli   s   returni   (   s   fs   gs   idents   f_idents   g_idents   selfs   check_events(   s   selfs   gs   g_idents   fs   f_ident(    (   s   fs6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_exception_in_except_clause} s
   c  
 s    ‘ d „  ‰  “ ‡  d †  } – t ˆ  ƒ } — t | ƒ } ˜ |  i | d d | f d d | f d d | f d d | f d d | f g ƒ d  S(   Nc   s   ‘ ’ d d d  S(   Ni   i    (    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   f‘ s   c   s2   “ ” z ” ˆ  |  ƒ Wd  • • |  i d ƒ Xd  S(   Ns   falling through(   s   fs   ps	   add_event(   s   p(   s   f(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   g“ s     i   s   calli   s   returns   falling through(   s   fs   gs   idents   f_idents   g_idents   selfs   check_events(   s   selfs   gs   g_idents   fs   f_ident(    (   s   fs6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_exception_propogation s
   c   sM   Ÿ   d „  } £ t | ƒ } ¤ |  i | d d | f d d | f g ƒ d  S(   Nc   s1     ¡ y ¡ d d Wn ¢ ¢ d d n Xd  S(   Ni   i    (    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   f  s     i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_raise_twiceŸ s   c   sM   ¨ © d „  } ¬ t | ƒ } ­ |  i | d d | f d d | f g ƒ d  S(   Nc   s,   © ª y ª d d Wn « « ‚  n Xd  S(   Ni   i    (    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   f© s     i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_raise_reraise¨ s   c   sM   ± ² d „  } ´ t | ƒ } µ |  i | d d | f d d | f g ƒ d  S(   Nc   s   ² ³ t  ƒ  ‚ d  S(   N(   s	   Exception(   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   f² s   i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys
   test_raise± s   c   s%  ¹ º d „  ‰ ¼ ‡ d †  ‰  ¾ ‡  d †  ‰ À ‡ d †  ‰ Â ‡ d †  } Ä t ˆ ƒ }	 Å t ˆ  ƒ } Æ t ˆ ƒ } Ç t ˆ ƒ } È t | ƒ }
 É |  i | d d |
 f d d | f d	 d | f d
 d | f d d |	 f d d |	 f d
 d | f d	 d | f d d | f d d |
 f g
 ƒ d  S(   Nc     s   º » d d d  S(   Ni   i    (    (    (    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fº s   c     s   ¼ ½ ˆ  ƒ  d  S(   N(   s   f(    (   s   f(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   g¼ s   c     s   ¾ ¿ ˆ  ƒ  d  S(   N(   s   g(    (   s   g(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   h¾ s   c     s   À Á ˆ  ƒ  d  S(   N(   s   h(    (   s   h(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   iÀ s   c   s   Â Ã ˆ  ƒ  d  S(   N(   s   i(   s   p(   s   i(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   jÂ s   i   s   calli   i   i   i   s   return(   s   fs   gs   hs   is   js   idents   f_idents   g_idents   h_idents   i_idents   j_idents   selfs   check_events(   s   selfs   h_idents   gs   g_idents   is   hs   fs   js   i_idents   f_idents   j_ident(    (   s   gs   is   hs   fs6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_distant_exception¹ s   c   s³   Õ Ö d „  ‰  Ù ‡  d †  } Ü t ˆ  ƒ } Ý t | ƒ } Þ |  i | d d | f d d | f d d | f d d | f d d | f d d | f d d | f d d | f g ƒ d  S(   Nc    #s+   Ö × x t  d ƒ D× ] }  Ø |  Vq Wd  S(   Ni   (   s   ranges   i(   s   i(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fÖ s    	c   s$   Ù Ú x ˆ  ƒ  DÚ ]	 } Û q Wd  S(   N(   s   fs   i(   s   ps   i(   s   f(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   gÙ s    	i   s   calli   s   return(   s   fs   gs   idents   f_idents   g_idents   selfs   check_events(   s   selfs   gs   g_idents   fs   f_ident(    (   s   fs6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_generatorÕ s
   c   s³   ë ì d „  ‰  ð ‡  d †  } ó t ˆ  ƒ } ô t | ƒ } õ |  i | d d | f d d | f d d | f d d | f d d | f d d | f d d | f d d | f g ƒ d  S(   Nc    #s4   ì í x t  d ƒ Dí ] }  î |  Vq Wï t ‚ d  S(   Ni   (   s   ranges   is   StopIteration(   s   i(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fì s    	c   s$   ð ñ x ˆ  ƒ  Dñ ]	 } ò q Wd  S(   N(   s   fs   i(   s   ps   i(   s   f(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   gð s    	i   s   calli   s   return(   s   fs   gs   idents   f_idents   g_idents   selfs   check_events(   s   selfs   gs   g_idents   fs   f_ident(    (   s   fs6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_stop_iterationë s
   (   s   new_watchers   test_simples   test_exceptions   test_caught_exceptions   test_caught_nested_exceptions   test_nested_exceptions   test_exception_in_except_clauses   test_exception_propogations   test_raise_twices   test_raise_reraises
   test_raises   test_distant_exceptions   test_generators   test_stop_iteration(    (    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   ProfileHookTestCaseL s   				s   ProfileSimulatorTestCasec     sA   d „  Z  d „  Z d „  Z d „  Z d „  Z RS(   Nc   s   t  |  ƒ Sd  S(   N(   s   ProfileSimulators   self(   s   self(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   new_watchers   c   sM   d „  } 	t | ƒ } 
|  i | d d | f d d | f g ƒ d  S(   Nc   s
   d  S(   N(    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fs   i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_simples   c   sM   d „  } t | ƒ } |  i | d d | f d d | f g ƒ d  S(   Nc   s   d d d  S(   Ni   i    (    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fs   i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_basic_exceptions   c   sM   d „  } t | ƒ } |  i | d d | f d d | f g ƒ d  S(   Nc   s)   y d d Wn n Xd  S(   Ni   i    (    (   s   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   fs     i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_caught_exceptions   c   s%   d „  ‰ "‡ d †  ‰  $‡  d †  ‰ &‡ d †  ‰ (‡ d †  } *t ˆ ƒ }	 +t ˆ  ƒ } ,t ˆ ƒ } -t ˆ ƒ } .t | ƒ }
 /|  i | d d |
 f d d | f d	 d | f d
 d | f d d |	 f d d |	 f d
 d | f d	 d | f d d | f d d |
 f g
 ƒ d  S(   Nc     s    !d d d  S(   Ni   i    (    (    (    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   f s   c     s   "#ˆ  ƒ  d  S(   N(   s   f(    (   s   f(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   g"s   c     s   $%ˆ  ƒ  d  S(   N(   s   g(    (   s   g(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   h$s   c     s   &'ˆ  ƒ  d  S(   N(   s   h(    (   s   h(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   i&s   c   s   ()ˆ  ƒ  d  S(   N(   s   i(   s   p(   s   i(    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   j(s   i   s   calli   i   i   i   s   return(   s   fs   gs   hs   is   js   idents   f_idents   g_idents   h_idents   i_idents   j_idents   selfs   check_events(   s   selfs   h_idents   gs   g_idents   is   hs   fs   js   i_idents   f_idents   j_ident(    (   s   gs   is   hs   fs6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   test_distant_exceptions   (   s   new_watchers   test_simples   test_basic_exceptions   test_caught_exceptions   test_distant_exception(    (    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   ProfileSimulatorTestCases
   	c   sI   <=t  |  d ƒ o >|  i } n @|  i } A| i | i f Sd  S(   Ns   f_code(   s   hasattrs   functions   f_codes   codes	   func_codes   co_firstlinenos   co_name(   s   functions   code(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   ident<s   c   s+   DEy E|  | ƒ Wn FFn Xd  S(   N(   s   fs   p(   s   fs   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   protectDs     c   sn   KL| t j o Mt ƒ  } n Nt i | i ƒ Ot |  | ƒ Pt i t ƒ Q| i ƒ  d d !Sd  S(   Ni   iÿÿÿÿ(	   s   ps   Nones   HookWatchers   syss
   setprofiles   callbacks   protects   callables
   get_events(   s   callables   p(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   capture_eventsKs   c   s)   TUd  k  } V| i  t |  ƒ ƒ d  S(   N(   s   pprints   capture_eventss   callable(   s   callables   pprint(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   show_eventsTs   c    sg   YZt  i ƒ  } [t  i ƒ  }  \|  i | i t ƒ ƒ ]|  i | i t ƒ ƒ ^t	 i
 |  ƒ d  S(   N(   s   unittests
   TestLoaders   loaders	   TestSuites   suites   addTests   loadTestsFromTestCases   ProfileHookTestCases   ProfileSimulatorTestCases   test_supports	   run_suite(   s   suites   loader(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys	   test_mainYs
   s   __main__(   s
   __future__s
   generatorss   pprints   syss   unittests   test_supports   HookWatchers   ProfileSimulators   TestCases   TestCaseBases   ProfileHookTestCases   ProfileSimulatorTestCases   idents   protects   protect_idents   Nones   capture_eventss   show_eventss	   test_mains   __name__(   s   test_supports   HookWatchers   protects   idents   show_eventss   ProfileHookTestCases   capture_eventss   unittests   pprints   syss   TestCaseBases
   generatorss	   test_mains   ProfileSimulatorTestCases   protect_idents   ProfileSimulator(    (    s6   /usr/local/twc/lib/python2.2/test/test_profilehooks.pys   ? s"   ¶:	