]> granicus.if.org Git - python/commitdiff
Remove generated test db files
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 25 Jan 2006 07:20:47 +0000 (07:20 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 25 Jan 2006 07:20:47 +0000 (07:20 +0000)
Lib/test/test_bsddb3.py

index 34555ff33b93a5383479ed81f9e9b0301e5d2e68..2d1bff76a7172fb202d920b35644d79bf287624a 100644 (file)
@@ -4,7 +4,7 @@ Run all test cases.
 """
 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 @@ def suite():
         # 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',