From a99363f472a4393eaa00d039056fb5acbb75770c Mon Sep 17 00:00:00 2001 From: Jesus Cea Date: Tue, 29 Jul 2008 13:38:50 +0000 Subject: [PATCH] Refinements in the bsddb testsuite --- Lib/bsddb/test/test_misc.py | 6 +++--- Lib/bsddb/test/test_replication.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/bsddb/test/test_misc.py b/Lib/bsddb/test/test_misc.py index dce7e0ce3f9..f7c26d9ec48 100644 --- a/Lib/bsddb/test/test_misc.py +++ b/Lib/bsddb/test/test_misc.py @@ -77,7 +77,7 @@ class MiscTestCase(unittest.TestCase): # double free happened during exit from DBC_get finally: db1.close() - os.unlink(self.filename) + test_support.unlink(self.filename) def test06_key_with_null_bytes(self): try: @@ -96,7 +96,7 @@ class MiscTestCase(unittest.TestCase): self.assertEqual(db1['aaa'], 'eh eh eh!') finally: db1.close() - os.unlink(self.filename) + test_support.unlink(self.filename) def test07_DB_set_flags_persists(self): if db.version() < (4,2): @@ -124,7 +124,7 @@ class MiscTestCase(unittest.TestCase): self.assertEqual([('a', 'new A')], db1.items()) finally: db1.close() - os.unlink(self.filename) + test_support.unlink(self.filename) #---------------------------------------------------------------------- diff --git a/Lib/bsddb/test/test_replication.py b/Lib/bsddb/test/test_replication.py index 8f2651fda30..f9102d7b1c6 100644 --- a/Lib/bsddb/test/test_replication.py +++ b/Lib/bsddb/test/test_replication.py @@ -131,7 +131,7 @@ class DBReplicationManager(unittest.TestCase): timeout = time.time()+2 while (time.time()