diff options
| author | Christian Heimes <christian@cheimes.de> | 2008-02-25 12:39:23 +0000 | 
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2008-02-25 12:39:23 +0000 | 
| commit | 23daade028eca9287f7072a6af26871f99088fe9 (patch) | |
| tree | 50ecab74c1f0d7235c31af2bef7756962f381d89 /Lib/bsddb/test/test_sequence.py | |
| parent | ecbac8f38f2900ccbcc1d6d1c38d8d2dc1055618 (diff) | |
| download | cpython-git-23daade028eca9287f7072a6af26871f99088fe9.tar.gz | |
Merged revisions 61038,61042-61045,61047,61049-61053,61055-61057 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
  r61049 | christian.heimes | 2008-02-24 13:26:16 +0100 (Sun, 24 Feb 2008) | 1 line
  Use PY_FORMAT_SIZE_T instead of z for string formatting. Thanks Neal.
........
  r61051 | mark.dickinson | 2008-02-24 19:12:36 +0100 (Sun, 24 Feb 2008) | 2 lines
  Remove duplicate 'import re' in decimal.py
........
  r61052 | neal.norwitz | 2008-02-24 19:47:03 +0100 (Sun, 24 Feb 2008) | 11 lines
  Create a db_home directory with a unique name so multiple users can
  run the test simultaneously.  The simplest thing I found that worked
  on both Windows and Unix was to use the PID.  It's unique so should be
  sufficient.  This should prevent many of the spurious failures of
  the automated tests since they run as different users.
  Also cleanup the directory consistenly in the tearDown methods.
  It would be nice if someone ensured that the directories are always
  created with a consistent name.
........
  r61057 | christian.heimes | 2008-02-24 23:48:05 +0100 (Sun, 24 Feb 2008) | 2 lines
  Added dependency rules for Objects/stringlib/*.h
  stringobject, unicodeobject and the two formatters are rebuild whenever a header files changes
........
Diffstat (limited to 'Lib/bsddb/test/test_sequence.py')
| -rw-r--r-- | Lib/bsddb/test/test_sequence.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/Lib/bsddb/test/test_sequence.py b/Lib/bsddb/test/test_sequence.py index e630f1a58d..fa80e7c915 100644 --- a/Lib/bsddb/test/test_sequence.py +++ b/Lib/bsddb/test/test_sequence.py @@ -3,7 +3,6 @@ import os  import shutil  import sys  import tempfile -import glob  try:      # For Pythons w/distutils pybsddb @@ -17,7 +16,7 @@ from bsddb.test.test_all import verbose  class DBSequenceTest(unittest.TestCase):      def setUp(self):          self.int_32_max = 0x100000000 -        self.homeDir = os.path.join(tempfile.gettempdir(), 'db_home') +        self.homeDir = os.path.join(tempfile.gettempdir(), 'db_home%d'%os.getpid())          try:              os.mkdir(self.homeDir)          except os.error: @@ -42,7 +41,8 @@ class DBSequenceTest(unittest.TestCase):              self.dbenv.close()              del self.dbenv -        shutil.rmtree(self.homeDir) +        from test import test_support +        test_support.rmtree(self.homeDir)      def test_get(self):          self.seq = db.DBSequence(self.d, flags=0) | 
