本文整理汇总了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