def setUp(self): homeDir = os.path.join(os.path.dirname(sys.argv[0]), 'db_home') self.homeDir = homeDir try: os.mkdir(homeDir) except os.error: pass self.tdb = dbtables.bsdTableDB( filename='tabletest.db', dbhome=homeDir, create=1)
def setUp(self): homeDir = tempfile.mkdtemp() self.testHomeDir = homeDir try: os.mkdir(homeDir) except os.error: pass self.tdb = dbtables.bsdTableDB( filename='tabletest.db', dbhome=homeDir, create=1)