[Python-checkins] r42181 - python/trunk/Lib/test/test_bsddb3.py

neal.norwitz python-checkins at python.org
Wed Jan 25 08:20:47 CET 2006


Author: neal.norwitz
Date: Wed Jan 25 08:20:47 2006
New Revision: 42181

Modified:
   python/trunk/Lib/test/test_bsddb3.py
Log:
Remove generated test db files

Modified: python/trunk/Lib/test/test_bsddb3.py
==============================================================================
--- python/trunk/Lib/test/test_bsddb3.py	(original)
+++ python/trunk/Lib/test/test_bsddb3.py	Wed Jan 25 08:20:47 2006
@@ -4,7 +4,7 @@
 """
 import sys
 import unittest
-from test.test_support import requires, verbose, run_suite
+from test.test_support import requires, verbose, run_suite, unlink
 
 # When running as a script instead of within the regrtest framework, skip the
 # requires test, since it's obvious we want to run them.
@@ -26,7 +26,8 @@
         # this is special, it used to segfault the interpreter
         import bsddb.test.test_1413192
     except:
-        pass
+        for f in ['__db.001', '__db.002', '__db.003', 'log.0000000001']:
+            unlink(f)
 
     test_modules = [
         'test_associate',


More information about the Python-checkins mailing list