-í
é¶<c      s@     d  k  l Z  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 F d e i	 f d „  ƒ  YZ
 N d	 e
 f d
 „  ƒ  YZ d e
 f d „  ƒ  YZ >d „  Z Fd „  Z Je e ƒ Z Me d „ Z Zd „  Z _d „  Z ge d j o he ƒ  n d S(   (   s
   generators(   s
   TestFailedNs   HookWatcherc     s>    t  Z  d „  Z  d „  Z  e d „ Z ! d „  Z RS(   Nc   s     g  |  _  g  |  _ d  S(   N(   s   selfs   framess   events(   s   self(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys
   get_events! s   ! 	 (   s   __name__s
   __module__s   __init__s   callbacks   Nones	   add_events
   get_events(    (    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   HookWatcher s   	s   ProfileSimulatorc     sk   ) t  Z * d „  Z / d „  Z 3 d „  Z 7 d „  Z ; 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(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   __init__* s   c   s   / 1 |  i | |  | ƒ d  S(   N(   s   selfs   dispatchs   events   frame(   s   selfs   frames   events   arg(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   callback/ s   c   s-   3 4 |  i d | ƒ 5 |  i i | ƒ d  S(   Ns   call(   s   selfs	   add_events   frames   stacks   append(   s   selfs   frame(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys
   trace_call3 s   c   s*   7 8 |  i d | ƒ 9 |  i i ƒ  d  S(   Ns   return(   s   selfs	   add_events   frames   stacks   pop(   s   selfs   frame(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   trace_return7 s   c   s   ; < |  i i d ƒ d  S(   Ns2   the profiler should never receive exception events(   s   selfs   testcases   fail(   s   selfs   frame(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   trace_exception; s   s   calls	   exceptions   return(   s   __name__s
   __module__s   __init__s   callbacks
   trace_calls   trace_returns   trace_exceptions   dispatch(    (    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   ProfileSimulator) s   	s   TestCaseBasec     s   F t  Z G d „  Z RS(   Nc   s_   G H t  | |  i ƒ  ƒ } I | | j o0 J |  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(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   check_eventsG s   (   s   __name__s
   __module__s   check_events(    (    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   TestCaseBaseF s   	s   ProfileHookTestCasec     s³   N t  Z O d „  Z R d „  Z Z d „  Z b d „  Z k d „  Z t d „  Z  d „  Z ’ d „  Z	 ¡ d	 „  Z
 ª d
 „  Z ³ d „  Z » d „  Z × d „  Z í d „  Z RS(   Nc   s   O P t  ƒ  Sd  S(   N(   s   HookWatcher(   s   self(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   new_watcherO s   c   sM   R S d „  } U t | ƒ } V |  i | d d | f d d | f g ƒ d  S(   Nc   s
   S T d  S(   N(    (   s   p(    (    s,   /usr/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(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   test_simpleR s   c   sM   Z [ d „  } ] t | ƒ } ^ |  i | d d | f d d | f g ƒ d  S(   Nc   s   [ \ d d d  S(   Ni   i    (    (   s   p(    (    s,   /usr/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(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   test_exceptionZ s   c   sM   b c d „  } f t | ƒ } g |  i | d d | f d d | f g ƒ d  S(   Nc   s)   c d y d d d Wn e e n Xd  S(   Ni   i    (    (   s   p(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   fc s     i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   test_caught_exceptionb s   c   sM   k l d „  } o t | ƒ } p |  i | d d | f d d | f g ƒ d  S(   Nc   s)   l m y m d d Wn n n n Xd  S(   Ni   i    (    (   s   p(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   fl s     i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   test_caught_nested_exceptionk s   c   sM   t u d „  } w t | ƒ } x |  i | d d | f d d | f g ƒ d  S(   Nc   s   u v d d d  S(   Ni   i    (    (   s   p(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   fu s   i   s   calls   return(   s   fs   idents   f_idents   selfs   check_events(   s   selfs   f_idents   f(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   test_nested_exceptiont 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(    (    s,   /usr/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(    s,   /usr/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   fs,   /usr/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(    (    s,   /usr/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(    s,   /usr/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   fs,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/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    (    (    (    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   f¼ s   c     s   ¾ ¿ ˆ  ƒ  d  S(   N(   s   f(    (   s   f(    s,   /usr/lib/python2.2/test/test_profilehooks.pys   g¾ s   c     s   À Á ˆ  ƒ  d  S(   N(   s   g(    (   s   g(    s,   /usr/lib/python2.2/test/test_profilehooks.pys   hÀ s   c     s   Â Ã ˆ  ƒ  d  S(   N(   s   h(    (   s   h(    s,   /usr/lib/python2.2/test/test_profilehooks.pys   iÂ s   c   s   Ä Å ˆ  ƒ  d  S(   N(   s   i(   s   p(   s   i(    s,   /usr/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   fs,   /usr/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(    (    s,   /usr/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(    s,   /usr/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   fs,   /usr/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(    (    s,   /usr/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(    s,   /usr/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   fs,   /usr/lib/python2.2/test/test_profilehooks.pys   test_stop_iterationí s
   (   s   __name__s
   __module__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(    (    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   ProfileHookTestCaseN s   					s   ProfileSimulatorTestCasec     sG   t  Z d „  Z d „  Z d „  Z d „  Z !d „  Z RS(   Nc   s   t  |  ƒ Sd  S(   N(   s   ProfileSimulators   self(   s   self(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/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(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   test_caught_exceptions   c   s%  !"d „  ‰ $‡ d †  ‰  &‡  d †  ‰ (‡ d †  ‰ *‡ d †  } ,t ˆ ƒ }	 -t ˆ  ƒ } .t ˆ ƒ } /t ˆ ƒ } 0t | ƒ }
 1|  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    (    (    (    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   f"s   c     s   $%ˆ  ƒ  d  S(   N(   s   f(    (   s   f(    s,   /usr/lib/python2.2/test/test_profilehooks.pys   g$s   c     s   &'ˆ  ƒ  d  S(   N(   s   g(    (   s   g(    s,   /usr/lib/python2.2/test/test_profilehooks.pys   h&s   c     s   ()ˆ  ƒ  d  S(   N(   s   h(    (   s   h(    s,   /usr/lib/python2.2/test/test_profilehooks.pys   i(s   c   s   *+ˆ  ƒ  d  S(   N(   s   i(   s   p(   s   i(    s,   /usr/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   fs,   /usr/lib/python2.2/test/test_profilehooks.pys   test_distant_exception!s   (   s   __name__s
   __module__s   new_watchers   test_simples   test_basic_exceptions   test_caught_exceptions   test_distant_exception(    (    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   ProfileSimulatorTestCases
   		c   sI   >?t  |  d ƒ o @|  i } n B|  i } C| i | i f Sd  S(   Ns   f_code(   s   hasattrs   functions   f_codes   codes	   func_codes   co_firstlinenos   co_name(   s   functions   code(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   ident>s   c   s+   FGy G|  | ƒ Wn HHn Xd  S(   N(   s   fs   p(   s   fs   p(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   protectFs     c   sª   MNy Nt  i ƒ  Wn Ot j
 o
 On XPt d ‚ R| t j o St ƒ  } n Tt  i | i ƒ Ut |  | ƒ Vt  i t ƒ W| i
 ƒ  d d !Sd  S(   Ns(   sys.setprofile() did not raise TypeErrori   iÿÿÿÿ(   s   syss
   setprofiles	   TypeErrors
   TestFaileds   ps   Nones   HookWatchers   callbacks   protects   callables
   get_events(   s   callables   p(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   capture_eventsMs     c   s)   Z[d  k  } \| i  t |  ƒ ƒ d  S(   N(   s   pprints   capture_eventss   callable(   s   callables   pprint(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   show_eventsZs   c    sg   _`t  i ƒ  } at  i ƒ  }  b|  i | i t ƒ ƒ c|  i | i t ƒ ƒ dt	 i
 |  ƒ d  S(   N(   s   unittests
   TestLoaders   loaders	   TestSuites   suites   addTests   loadTestsFromTestCases   ProfileHookTestCases   ProfileSimulatorTestCases   test_supports	   run_suite(   s   suites   loader(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys	   test_main_s
   s   __main__(   s
   __future__s
   generatorss   test_supports
   TestFaileds   pprints   syss   unittests   HookWatchers   ProfileSimulators   TestCases   TestCaseBases   ProfileHookTestCases   ProfileSimulatorTestCases   idents   protects   protect_idents   Nones   capture_eventss   show_eventss	   test_mains   __name__(   s   test_supports   HookWatchers   protects   TestCaseBases   show_eventss   ProfileHookTestCases   capture_eventss   unittests   pprints   syss   idents
   generatorss	   test_mains
   TestFaileds   ProfileSimulatorTestCases   protect_idents   ProfileSimulator(    (    s,   /usr/lib/python2.2/test/test_profilehooks.pys   ? s$   ¶: