+
    Bip                         ^ RI t ^ RIt^ RIHt ]P                  ! R4      t ! R R]P                  4      t]R8X  d   ]P                  ! 4        R# R# )    N)import_helper	_testcapic                   D   a  ] tR t^	t o R tR tR tR tR tR t	Rt
V tR# )		FrameTestc                ,    \         P                  ! 4       # Nsys	_getframeselfs   &0/usr/lib/python3.14/test/test_capi/test_frame.pygetframeFrameTest.getframe
   s    }}    c                   V P                  4       pV P                  VP                  \        P	                  V4      4       V P                  VP                  \        P                  V4      4       V P                  VP                  \        P                  V4      4       V P                  VP                  \        P                  V4      4       R # r   )r   assertEqualf_localsr   frame_getlocalsassertIs	f_globalsframe_getglobals
f_builtinsframe_getbuiltinsf_lastiframe_getlasti)r   frames   & r   test_frame_gettersFrameTest.test_frame_getters   s    )B)B5)IJeooy'A'A%'HIe&&	(C(CE(JK	(@(@(GHr   c                F   \         P                  ! 4       p^pV P                  \        P	                  VR4      ^4       V P                  \        P                  VR4      ^4       V P                  \        4      ;_uu_ 4        \        P	                  VR4       RRR4       V P                  \        4      ;_uu_ 4        \        P                  VR4       RRR4       V P                  \        4      ;_uu_ 4        \        P	                  VR4       RRR4       V P                  \        4      ;_uu_ 4        \        P	                  V^{4       RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lt; i  + '       g   i     R# ; i)   x   xyN   y)	r
   r   r   r   frame_getvarframe_getvarstringassertRaises	NameError	TypeError)r   current_framer"   s   &  r   test_getvarFrameTest.test_getvar   s   //sCQG55mTJANy))""=#6 *y))((= * y))""=$7 *y))""=#6 *) *))) *))))s0   E=E)9E<5FE&	)E9	<F	F 	c              #  <   "   \         P                  ! 4       x  R # 5ir   r	   r   s   &r   getgenframeFrameTest.getgenframe$   s     mmos   c                    V P                  4       p\        V4      pV P                  V\        P	                  V4      4       R # r   )r/   nextr   r   frame_getgenerator)r   genr   s   &  r   test_frame_get_generator"FrameTest.test_frame_get_generator'   s2     S	c977>?r   c                    R p\         P                  VP                  \        4       \	        4       4      pV P                  VP                  4       R# )zrTest that accessing `f_back` does not cause a segmentation fault on
a frame created with `PyFrame_New` (GH-99110).c                      R # r    r9   r   r   dummy-FrameTest.test_frame_fback_api.<locals>.dummy/   s    r   N)r   	frame_new__code__globalslocalsassertIsNonef_back)r   r:   r   s   &  r   test_frame_fback_apiFrameTest.test_frame_fback_api,   s7    	 ##ENNGIvxH%,,'r   r9   N)__name__
__module____qualname____firstlineno__r   r   r,   r/   r5   rB   __static_attributes____classdictcell__)__classdict__s   @r   r   r   	   s*     I7 @
( (r   r   __main__)
r
   unittesttest.supportr   import_moduler   TestCaser   rD   mainr9   r   r   <module>rQ      sK    
  & ''4	+(!! +(\ zMMO r   