diff options
author | Jesus Cea <jcea@jcea.es> | 2008-05-27 13:26:02 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2008-05-27 13:26:02 (GMT) |
commit | dbd2f6d8a99c817a7a711e53554be0a75057d853 (patch) | |
tree | 5f3984a3c45157c9f1b9bea15a73a45a9c4f64b6 /Lib/bsddb/test | |
parent | b1a54a353021f3d478e1d9e667cef0fa92507c36 (diff) | |
download | cpython-dbd2f6d8a99c817a7a711e53554be0a75057d853.zip cpython-dbd2f6d8a99c817a7a711e53554be0a75057d853.tar.gz cpython-dbd2f6d8a99c817a7a711e53554be0a75057d853.tar.bz2 |
Better integration between Python testing and bsddb3
Diffstat (limited to 'Lib/bsddb/test')
-rw-r--r-- | Lib/bsddb/test/test_all.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Lib/bsddb/test/test_all.py b/Lib/bsddb/test/test_all.py index 11f1f6a..11043a2 100644 --- a/Lib/bsddb/test/test_all.py +++ b/Lib/bsddb/test/test_all.py @@ -67,11 +67,20 @@ def get_new_database_path() : return path -# NOTE: This path is overridden by a unique one and cleaned up -# afterwards when run under regrtest via Lib/test/test_bsddb3.py. -get_new_path.prefix="/tmp/z-Berkeley_DB" +# This path can be overriden via "set_test_path_prefix()". +import os, os.path +get_new_path.prefix=os.path.join(os.sep,"tmp","z-Berkeley_DB") get_new_path.num=0 +def get_test_path_prefix() : + return get_new_path.prefix + +def set_test_path_prefix(path) : + get_new_path.prefix=path + +def remove_test_path_directory() : + test_support.rmtree(get_new_path.prefix) + try : import threading get_new_path.mutex=threading.Lock() @@ -100,12 +109,6 @@ test_all.verbose = verbose def suite(module_prefix='', timing_check=None): - try: - # this is special, it used to segfault the interpreter - import test_1413192 - except: - pass - test_modules = [ 'test_associate', 'test_basics', |