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_values.pyc
mò šóIFc @ sW d Z d k Z d k Td k Z d e i f d „ ƒ YZ e d j o e i ƒ n d S( s. A testcase which accesses *values* in a dll. N( t *t ValuesTestCasec B s3 t Z d „ Z d „ Z d e i f d „ ƒ YZ RS( Nc C sm t t i ƒ } t i | d ƒ } | i } | i | | i ƒ ƒ | i d 9_ | i | d | i ƒ ƒ d S( Nt an_integeri ( t CDLLt _ctypes_testt __file__t ctdllt c_intt in_dllR t valuet xt selft failUnlessEqualt get_an_integer( R R R R ( ( t; /usr/lib/python2.4/site-packages/ctypes/test/test_values.pyt test_an_integer s c C s, t t i ƒ } | i t t i | d ƒ d S( Nt Undefined_Symbol( R R R R R t assertRaisest ValueErrorR R ( R R ( ( R t test_undefined s t Win_ValuesTestCasec B s) t Z d Z d „ Z d „ Z d „ Z RS( s? This test only works when python itself is a dll/shared libraryc C sh t i t d ƒ i } t o | i | d ƒ n5 t i d j o | i | d ƒ n | i | d ƒ d S( Nt Py_OptimizeFlagi i i ( R R t pydllR t optt __debug__R R R t __doc__t None( R R ( ( R t test_optimizeflag s c C sà d t f d „ ƒ Y} t | ƒ } | i t d ƒ } g } x<