diff options
Diffstat (limited to 'Lib/bsddb/test/test_compare.py')
-rw-r--r-- | Lib/bsddb/test/test_compare.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_compare.py b/Lib/bsddb/test/test_compare.py index 59a45ec..5aa8308 100644 --- a/Lib/bsddb/test/test_compare.py +++ b/Lib/bsddb/test/test_compare.py @@ -4,6 +4,7 @@ TestCases for python DB Btree key comparison function. import sys, os, re import test_all +import tempfile from cStringIO import StringIO import unittest @@ -51,7 +52,7 @@ class AbstractBtreeKeyCompareTestCase (unittest.TestCase): def setUp (self): self.filename = self.__class__.__name__ + '.db' - homeDir = os.path.join (os.path.dirname (sys.argv[0]), 'db_home') + homeDir = os.path.join (tempfile.gettempdir(), 'db_home') self.homeDir = homeDir try: os.mkdir (homeDir) |