Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
bsddb
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/bsddb/test/test_env_close.pyo
mò ‚=5Dc @ s÷ d Z d k Z d k Z d k Z d k Z d k Z y d k l Z Wn e j o d k l Z n Xd k l Z y d k Z Wn e j o n Xe i d d d d e ƒd e i f d „ ƒ YZ d „ Z e d j o e i d d ƒ n d S( sf TestCases for checking that it does not segfault when a DBEnv object is closed before its DB objects. N( s db( s verboset ignoret messages DB could not be closed int categoryt DBEnvClosedEarlyCrashc B s, t Z d „ Z d „ Z d „ Z d „ Z RS( Nc C s t i i t i i t i d ƒ d ƒ | _ y t i | i ƒ Wn t i j o n X| i t _ t i i t i ƒ ƒ d | _ d t _ d S( Ni t db_homei ( t ost patht joint dirnamet syst argvt selft homeDirt mkdirt errort tempfilet tempdirt splitt mktempt filenamet None( R ( ( t/ /usr/lib/python2.4/bsddb/test/test_env_close.pyt setUp# s + c C sC t i t i i | i d ƒ ƒ } x | D] } t i | ƒ q( Wd S( Nt *( t globR R R R R t filest filet remove( R R R ( ( R t tearDown+ s ! c C sÅ t i ƒ } | i | i t i t i Bt i Bt i Bd ƒ t i | ƒ } | i | i t i t i t i Bd ƒ y | i ƒ WnA t i j o2 y | i ƒ WqÁ t i j o d SqÁ Xn Xd S( Ni¶ ( t dbt DBEnvt dbenvt openR R t DB_INIT_CDBt DB_CREATEt DB_THREADt DB_INIT_MPOOLt DBt dR t DB_BTREEt closet DBError( R R R&