本文整理匯總了Python中bsddb.db.DB_VERSION_STRING屬性的典型用法代碼示例。如果您正苦於以下問題:Python db.DB_VERSION_STRING屬性的具體用法?Python db.DB_VERSION_STRING怎麽用?Python db.DB_VERSION_STRING使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類bsddb.db
的用法示例。
在下文中一共展示了db.DB_VERSION_STRING屬性的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_main
# 需要導入模塊: from bsddb import db [as 別名]
# 或者: from bsddb.db import DB_VERSION_STRING [as 別名]
def test_main():
from bsddb import db
from bsddb.test import test_all
test_all.set_test_path_prefix(os.path.join(tempfile.gettempdir(),
'z-test_bsddb3-%s' %
os.getpid()))
# Please leave this print in, having this show up in the buildbots
# makes diagnosing problems a lot easier.
print >>sys.stderr, db.DB_VERSION_STRING
print >>sys.stderr, 'Test path prefix: ', test_all.get_test_path_prefix()
try:
run_unittest(test_all.suite(module_prefix='bsddb.test.',
timing_check=TimingCheck))
finally:
# The only reason to remove db_home is in case if there is an old
# one lying around. This might be by a different user, so just
# ignore errors. We should always make a unique name now.
try:
test_all.remove_test_path_directory()
except:
pass