
    3hhk                         S SK r S SKrS SKJr  SSKJrJr  S r\R                  " \R                  " 5       S5      \R                  " S5       " S S	\5      5       5       rg)
    N)support   )setup_moduleDebuggerTestsc                      [        5         g )N)r        E/opt/python-3.13.8/usr/lib/python3.13/test/test_gdb/test_cfunction.pysetUpModuler      s    Nr	   z&Python was compiled with optimizationscpuc                   D    \ rS rSrS rS rS rS rS rS r	S r
S	 rS
rg)CFunctionTests   c                 V    U R                  UUSS/SS9nU R                  SU 3U5        g )Nbtzpy-btT)
breakpointcmds_after_breakpointignore_stderrz<built-in method )get_stack_traceassertIn)self	func_namecmd
gdb_outputs       r
   checkCFunctionTests.check   sA    )) #'/  * 

 	))5zBr	   c                 f   [         R                  (       a
  [        5         S Hz  nU R                  U SU 35         U SU SU S3n[        R
                  " SU S35      n[         R                  (       a  [        SU 3SS	9  U R                  X5        S
S
S
5        M|     g
! , (       d  f       M  = f)zAVerify that "py-bt" displays invocations of PyCFunction instances)	_testcapiz_testcapi.MethClassz_testcapi.MethClass()z_testcapi.MethStatic().()z]
                    import _testcapi
                    def foo():
                        zh
                    def bar():
                        foo()
                    bar()
                z  test call: T)flushN)r   verboseprintsubTesttextwrapdedentr   )r   r   argsobjcallr   s         r
   check_pycfunction CFunctionTests.check_pycfunction%   s     ??G
C Qyk23a	{!D63oo +  '  ??M$0=

9* 43
 43s   AB!!
B0	c                 (    U R                  SS5        g )Nmeth_noargs r+   r   s    r
   test_pycfunction_noargs&CFunctionTests.test_pycfunction_noargsE   s    }b1r	   c                 (    U R                  SS5        g )Nmeth_oz[]r0   r1   s    r
   test_pycfunction_o!CFunctionTests.test_pycfunction_oH   s    x.r	   c                 (    U R                  SS5        g )Nmeth_varargsr/   r0   r1   s    r
   test_pycfunction_varargs'CFunctionTests.test_pycfunction_varargsK   s    ~r2r	   c                 (    U R                  SS5        g )Nmeth_varargs_keywordsr/   r0   r1   s    r
   !test_pycfunction_varargs_keywords0CFunctionTests.test_pycfunction_varargs_keywordsN   s    6;r	   c                 (    U R                  SS5        g )Nmeth_fastcallr/   r0   r1   s    r
   test_pycfunction_fastcall(CFunctionTests.test_pycfunction_fastcallQ   s    3r	   c                 (    U R                  SS5        g )Nmeth_fastcall_keywordsr/   r0   r1   s    r
   "test_pycfunction_fastcall_keywords1CFunctionTests.test_pycfunction_fastcall_keywordsT   s    7<r	   r   N)__name__
__module____qualname____firstlineno__r   r+   r2   r6   r:   r>   rB   rF   __static_attributes__r   r	   r
   r   r      s,    
C*+@2/3<4=r	   r   )r&   unittesttestr   utilr   r   r   skipIfpython_is_optimizedrequires_resourcer   r   r	   r
   <module>rS      s^       - 
,,.9;5!F=] F= ";F=r	   