1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- Lib/bsddb/test/test_all.py
+++ Lib/bsddb/test/test_all.py
@@ -528,7 +528,9 @@
# 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.prefix=os.environ.get("BSDDB_TEST_PATH")
+if get_new_path.prefix is None:
+ get_new_path.prefix=os.path.join(os.sep,"tmp","z-Berkeley_DB")
get_new_path.num=0
def get_test_path_prefix() :
--- Lib3/bsddb/test/test_all.py
+++ Lib3/bsddb/test/test_all.py
@@ -528,7 +528,9 @@
# 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.prefix=os.environ.get("BSDDB_TEST_PATH")
+if get_new_path.prefix is None:
+ get_new_path.prefix=os.path.join(os.sep,"tmp","z-Berkeley_DB")
get_new_path.num=0
def get_test_path_prefix() :
|