PATH:
lib64
/
python2.7
/
ctypes
/
test
� ��^c @ s� d Z d d l Z d d l Z d d l Td d l Z d e j f d � � YZ d e j f d � � YZ e d k r e j � n d S( s. A testcase which accesses *values* in a dll. i����N( t *t ValuesTestCasec B s e Z d � Z d � Z RS( c C sm t t j � } t j | d � } | j } | j | | j � � | j d 9_ | j | d | j � � d S( Nt an_integeri ( t CDLLt _ctypes_testt __file__t c_intt in_dllt valuet assertEqualt get_an_integer( t selft ctdllR t x( ( s/ /usr/lib64/python2.7/ctypes/test/test_values.pyt test_an_integer s c C s, t t j � } | j t t j | d � d S( Nt Undefined_Symbol( R R R t assertRaisest ValueErrorR R ( R R ( ( s/ /usr/lib64/python2.7/ctypes/test/test_values.pyt test_undefined s ( t __name__t __module__R R ( ( ( s/ /usr/lib64/python2.7/ctypes/test/test_values.pyR s t PythonValuesTestCasec B s) e Z d Z d � Z d � Z d � Z RS( s? This test only works when python itself is a dll/shared libraryc C s) t j t d � j } | j | d � d S( Nt Py_OptimizeFlagi ( R R t pythonapiR R ( R t opt( ( s/ /usr/lib64/python2.7/ctypes/test/test_values.pyt test_optimizeflag s c C s� d t f d � � Y} t | � } | j t d � } g } x: | D]2 } | j d k rZ Pn | j | j | j f � qA Wd d d g } | j | | � d d l m } | | =d S( Nt struct_frozenc B s/ e Z d e f d e e � f d e f g Z RS( t namet codet size( R R t c_char_pt POINTERt c_ubyteR t _fields_( ( ( s/ /usr/lib64/python2.7/ctypes/test/test_values.pyR 5 s t PyImport_FrozenModulest __hello__ih t __phello__i����s __phello__.spami����( t _pointer_type_cache( R# ih ( R$ i����( s __phello__.spamih ( t StructureR R R R t Nonet appendR R t ctypesR% ( R R t FrozenTablet ftt itemst entryt expectedR% ( ( s/ /usr/lib64/python2.7/ctypes/test/test_values.pyt test_frozentable, s c C s | j t t j t d � d S( NR ( R R R R R ( R ( ( s/ /usr/lib64/python2.7/ctypes/test/test_values.pyR N s ( R R t __doc__R R/ R ( ( ( s/ /usr/lib64/python2.7/ctypes/test/test_values.pyR s "t __main__( R0 t unittestt sysR) R t TestCaseR R R t main( ( ( s/ /usr/lib64/python2.7/ctypes/test/test_values.pyt <module> s 9
[+]
..
[-] test_values.pyc
[open]
[-] runtests.pyc
[open]
[-] test_objects.pyc
[open]
[-] test_checkretval.pyc
[open]
[-] test_find.pyo
[open]
[-] test_macholib.py
[open]
[-] test_loading.pyo
[open]
[-] test_wintypes.pyo
[open]
[-] test_win32.py
[open]
[-] test_loading.pyc
[open]
[-] test_frombuffer.pyo
[open]
[-] test_returnfuncptrs.py
[open]
[-] test_sizes.pyc
[open]
[-] test_libc.pyc
[open]
[-] test_libc.pyo
[open]
[-] test_random_things.py
[open]
[-] test_as_parameter.pyo
[open]
[-] test_refcounts.pyo
[open]
[-] test_random_things.pyc
[open]
[-] test_numbers.py
[open]
[-] test_pickling.pyo
[open]
[-] test_values.pyo
[open]
[-] test_simplesubclasses.pyo
[open]
[-] test_repr.py
[open]
[-] test_cfuncs.pyc
[open]
[-] test_structures.pyo
[open]
[-] test_incomplete.pyo
[open]
[-] test_frombuffer.pyc
[open]
[-] test_byteswap.py
[open]
[-] test_pickling.pyc
[open]
[-] test_parameters.py
[open]
[-] test_macholib.pyc
[open]
[-] test_array_in_pointer.pyo
[open]
[-] test_repr.pyo
[open]
[-] test_delattr.pyo
[open]
[-] test_callbacks.pyc
[open]
[-] test_strings.pyo
[open]
[-] test_funcptr.pyc
[open]
[-] test_byteswap.pyo
[open]
[-] test_frombuffer.py
[open]
[-] test_find.py
[open]
[-] test_anon.pyc
[open]
[-] test_errno.pyc
[open]
[-] test_pep3118.pyo
[open]
[-] test_funcptr.py
[open]
[-] test_strings.pyc
[open]
[-] test_cfuncs.py
[open]
[-] test_array_in_pointer.py
[open]
[-] test_bitfields.pyc
[open]
[-] test_python_api.pyc
[open]
[-] test_unicode.pyo
[open]
[-] test_anon.pyo
[open]
[-] test_slicing.pyc
[open]
[-] test_refcounts.pyc
[open]
[-] runtests.pyo
[open]
[-] test_pointers.pyo
[open]
[-] test_delattr.pyc
[open]
[-] __init__.pyc
[open]
[-] test_prototypes.pyc
[open]
[-] test_cast.pyo
[open]
[-] test_checkretval.pyo
[open]
[-] test_pep3118.py
[open]
[-] test_wintypes.pyc
[open]
[-] test_sizes.py
[open]
[-] test_numbers.pyc
[open]
[-] test_varsize_struct.pyo
[open]
[-] test_internals.py
[open]
[-] test_objects.py
[open]
[-] test_anon.py
[open]
[-] test_struct_fields.py
[open]
[-] test_functions.pyo
[open]
[-] test_libc.py
[open]
[-] test_struct_fields.pyc
[open]
[-] test_random_things.pyo
[open]
[-] test_arrays.pyc
[open]
[-] test_memfunctions.py
[open]
[-] test_python_api.pyo
[open]
[-] test_incomplete.pyc
[open]
[-] test_returnfuncptrs.pyo
[open]
[-] test_array_in_pointer.pyc
[open]
[-] test_structures.pyc
[open]
[-] test_errno.py
[open]
[-] test_returnfuncptrs.pyc
[open]
[-] test_as_parameter.pyc
[open]
[-] test_keeprefs.pyo
[open]
[-] test_memfunctions.pyc
[open]
[-] test_pep3118.pyc
[open]
[-] test_parameters.pyo
[open]
[-] test_cast.pyc
[open]
[-] test_simplesubclasses.py
[open]
[-] test_internals.pyc
[open]
[-] test_keeprefs.py
[open]
[-] test_pointers.py
[open]
[-] test_bitfields.pyo
[open]
[-] test_macholib.pyo
[open]
[-] test_refcounts.py
[open]
[-] test_values.py
[open]
[-] test_checkretval.py
[open]
[-] test_arrays.py
[open]
[-] test_buffers.pyc
[open]
[-] test_python_api.py
[open]
[-] test_strings.py
[open]
[-] test_unicode.pyc
[open]
[-] test_parameters.pyc
[open]
[-] test_buffers.pyo
[open]
[-] test_cfuncs.pyo
[open]
[-] test_prototypes.pyo
[open]
[-] test_keeprefs.pyc
[open]
[-] test_stringptr.pyc
[open]
[-] test_unicode.py
[open]
[-] test_struct_fields.pyo
[open]
[-] test_cast.py
[open]
[-] test_slicing.pyo
[open]
[-] test_buffers.py
[open]
[-] test_prototypes.py
[open]
[-] test_internals.pyo
[open]
[-] test_unaligned_structures.py
[open]
[-] test_functions.pyc
[open]
[-] test_stringptr.pyo
[open]
[-] test_repr.pyc
[open]
[-] __init__.py
[open]
[-] test_numbers.pyo
[open]
[-] test_init.pyc
[open]
[-] test_errno.pyo
[open]
[-] test_structures.py
[open]
[-] test_win32.pyo
[open]
[-] test_varsize_struct.pyc
[open]
[-] test_byteswap.pyc
[open]
[-] test_stringptr.py
[open]
[-] test_arrays.pyo
[open]
[-] test_slicing.py
[open]
[-] test_loading.py
[open]
[-] test_delattr.py
[open]
[-] test_objects.pyo
[open]
[-] test_init.pyo
[open]
[-] test_varsize_struct.py
[open]
[-] test_init.py
[open]
[-] test_memfunctions.pyo
[open]
[-] test_as_parameter.py
[open]
[-] test_incomplete.py
[open]
[-] test_simplesubclasses.pyc
[open]
[-] test_bitfields.py
[open]
[-] test_callbacks.py
[open]
[-] test_win32.pyc
[open]
[-] test_unaligned_structures.pyo
[open]
[-] test_unaligned_structures.pyc
[open]
[-] test_sizes.pyo
[open]
[-] test_funcptr.pyo
[open]
[-] __init__.pyo
[open]
[-] test_pointers.pyc
[open]
[-] runtests.py
[open]
[-] test_find.pyc
[open]
[-] test_callbacks.pyo
[open]
[-] test_wintypes.py
[open]
[-] test_functions.py
[open]
[-] test_pickling.py
[open]