#NEWLINE# def test_anydbm_create( self ) : #NEWLINE# #INDENT# tmpdir = tempfile . mkdtemp ( ) #NEWLINE# try : #NEWLINE# #INDENT# dbfile = os . path . join ( tmpdir , 'foo.db' ) #NEWLINE# anydbm . open ( dbfile , 'c' ) . close ( ) #NEWLINE# ftype = whichdb . whichdb ( dbfile ) #NEWLINE# self . assertNotEqual ( ftype , 'bsddb185' ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# shutil . rmtree ( tmpdir )