Your IP : 216.73.216.213
�
��]c @ s� d Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l Z d d l m Z m Z d e j
f d � � YZ d S( s�
Test libpython.py. This is already partly tested by test_libcython_in_gdb and
Lib/test/test_gdb.py in the Python source. These tests are run in gdb and
called from test_libcython_in_gdb.main()
i����N( t libcython( t libpython( t _debugt inferior_python_versiont TestPrettyPrintersc B sz e Z d Z d � Z d � Z d d � Z d � Z d d � Z d d � Z d � Z
d � Z d � Z d
� Z
d � Z RS(
s�
Test whether types of Python objects are correctly inferred and that
the right libpython.PySomeTypeObjectPtr classes are instantiated.
Also test whether values are appropriately formatted (don't be too
laborious as Lib/test/test_gdb.py already covers this extensively).
Don't take care of decreffing newly allocated objects as a new
interpreter is started for every test anyway.
c C s$ t t | � j � | j d � d S( Ns
b = c = d = 0( t superR t setUpt
break_and_run( t self( ( s^ /opt/alt/python27/lib64/python2.7/site-packages/Cython/Debugger/Tests/test_libpython_in_gdb.pyR ! s c C s. t j | � } t j | � d k s* t � | S( Ni ( t gdbt parse_and_evalR t pointervaluet AssertionError( R t codet value( ( s^ /opt/alt/python27/lib64/python2.7/site-packages/Cython/Debugger/Tests/test_libpython_in_gdb.pyt get_pyobject% s c C sW | d k r>