Current Path : /usr/local/lib/python2.5/bsddb/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/python2.5/bsddb/test/test_env_close.pyc |
³ò h”Rc @ s d Z d d k Z d d k Z d d k Z d d k Z d d k Z y d d k l Z Wn# e j o d d k l Z n Xd d k l Z y d 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. iÿÿÿÿN( t db( t verboset ignoret messages DB could not be closed int categoryt DBEnvClosedEarlyCrashc B s, e Z d „ Z d „ Z d „ Z d „ Z RS( c 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 homeDirt mkdirt errort tempfilet tempdirt splitt mktempt filenamet None( t self( ( s5 /usr/local/lib/python2.5/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 t remove( R t filest file( ( s5 /usr/local/lib/python2.5/bsddb/test/test_env_close.pyt 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( R t DBEnvt openR t DB_INIT_CDBt DB_CREATEt DB_THREADt DB_INIT_MPOOLt DBR t DB_BTREEt closet DBErrort AssertionError( R t dbenvt d( ( s5 /usr/local/lib/python2.5/bsddb/test/test_env_close.pyt test01_close_dbenv_before_db1 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 ƒ Wn t i j o n X~ y d d k } Wn t j o d } n X| o | i ƒ n d S( Ni¶ iÿÿÿÿ( R R R R R R! R"