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/__init__.pyc
mò šóIFc @ sÓ d k Z d k Z d k Z d k Z d k Z d k Z g Z d e f d „ ƒ YZ d „ Z h Z d d „ Z d „ Z d „ Z d „ Z d „ Z d e i f d „ ƒ YZ d „ Z d „ Z d f d „ ƒ YZ d S( Nt ResourceDeniedc B s t Z d Z RS( s Test skipped because it requested a disallowed resource. This is raised when a test calls requires() for a resource that has not be enabled. Resources are defined by test modules. ( t __name__t __module__t __doc__( ( ( t8 /usr/lib/python2.4/site-packages/ctypes/test/__init__.pyR s c C si t i ƒ i i i d ƒ d j o t Sn t d j o | t j p d t j } | p d t | <n | S( sk Test whether a resource is enabled. If the caller's module is __main__ then automatically return True.R t __main__t *N( t syst _getframet f_backt f_globalst gett Truet use_resourcest Nonet resourcet resultt _unavail( R R ( ( R t is_resource_enabled s "&c C sf t i ƒ i i i d ƒ d j o d Sn t | ƒ p+ | d j o d | } n t | ƒ ‚ n d S( sˆ Raise ResourceDenied if the specified resource is not available. If the caller's module is __main__ then automatically return True.R R Ns$ Use of the `%s' resource not enabled( R R R R R R R t msgR R ( R R ( ( R t requires s " c c s d k } t | d ƒ oŽ | i i d t i i ƒ } t i i | | ƒ } xº | i i i ƒ D]C } | i | | ƒ o* t i i | ƒ d i t i i d ƒ Vq\ q\ Wn` | i d } xO t i | ƒ D]>