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.pyc
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 ƒ WnR t i j oC y | i ƒ Wn t i j o d Sn Xd p t d ‚ n Xd p t d ‚ d S( Ni¶ i sA DB close did not raise an exception about its DBEnv being trasheds8 dbenv did not raise an exception about its DB being open( t dbt DBEnvt dbenvt openR R t DB_INIT_CDBt DB_CREATEt DB_THREADt DB_INIT_MPOOLt DBt dR t DB_BTREEt closet DBErrort AssertionError( R R R&