Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
ctypes
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/ctypes/test/test_returnfuncptrs.pyc
mò šóIFc @ sQ d k Z d k Td k Z d e i f d „ ƒ YZ e d j o e i ƒ n d S( N( t *t ReturnFuncPtrTestCasec B s t Z d „ Z d „ Z RS( Nc C s• t t i ƒ } | i } t t t t ƒ | _ | ƒ } | i | d d ƒ d ƒ | i | d d ƒ d ƒ | i t | d d ƒ | i t | d ƒ d S( Nt abcdeft bt bcdeft xi ( t CDLLt _ctypes_testt __file__t dllt get_strchrt CFUNCTYPEt c_char_pt c_chart restypet strchrt selft failUnlessEqualt Nonet assertRaisest ArgumentErrort TypeError( R R R R ( ( tC /usr/lib/python2.4/site-packages/ctypes/test/test_returnfuncptrs.pyt test_with_prototype s c C s¡ t t i ƒ } | i } t | _ | ƒ } t t t t ƒ | ƒ } | i | d d ƒ d ƒ | i | d d ƒ d ƒ | i t | d d ƒ | i t | d ƒ d S( NR R R R i ( R R R R R t c_void_pR t addrR R R R R t failUnlessR R R R R ( R R R R R ( ( R t test_without_prototype s ( t __name__t __module__R R ( ( ( R R s t __main__( t unittestt ctypesR t TestCaseR R t main( R R R ( ( R t ? s