File: //usr/local/lib/python2.7/ctypes/test/test_random_things.pyc
�
P��ac @ s� d d l Td d l Z d d l Z d � Z e j e j d k d � d e j f d � � Y� Z d e j f d � � YZ e d
k r� e j
� n d S( i����( t *Nc C s d | t | � � d S( Ni* ( t
ValueError( t arg( ( s: /usr/local/lib/python2.7/ctypes/test/test_random_things.pyt
callback_func s t win32s Windows-specific testt call_function_TestCasec B s e Z d � Z RS( c C s� d d l m } t t j j _ t t f t j j _ t t j j _ t j j d � } t j j | d � } | j
| | d � t j j d � � d S( Ni����( t
call_functiont kernel32t GetModuleHandleA( N(
t _ctypesR t c_void_pt windllR t LoadLibraryAt restypet c_char_pt GetProcAddresst argtypest assertEqualt NoneR ( t selfR t hdllt funcaddr( ( s: /usr/local/lib/python2.7/ctypes/test/test_random_things.pyt test
s ( t __name__t
__module__R ( ( ( s: /usr/local/lib/python2.7/ctypes/test/test_random_things.pyR s t CallbackTracbackTestCasec B s5 e Z d � Z d � Z d � Z d � Z d � Z RS( c O sP d d l } t j } | j � } t _ z | | | � Wd | t _ X| j � S( Ni����( t StringIOt syst stderrt getvalue( R t funct argst kwR t
old_stderrt logger( ( s: /usr/local/lib/python2.7/ctypes/test/test_random_things.pyt capture_stderr% s
c C sE t t t � t � } | j | d � } | j | j � d d � d S( Ni* i����s ValueError: 42( t CFUNCTYPEt c_intR R# R t
splitlines( R t cbt out( ( s: /usr/local/lib/python2.7/ctypes/test/test_random_things.pyt test_ValueError0 s c C sI t t t � t � } | j | d � } | j | j � d d d � d S( Ni i����i s ZeroDivisionError: ( R$ R% R R# R R&