"""
Run all test cases.
"""
+import os
import sys
import unittest
-from test.test_support import requires, verbose, run_suite, unlink
+from test.test_support import requires, verbose, run_suite
# When running as a script instead of within the regrtest framework, skip the
# requires test, since it's obvious we want to run them.
import bsddb.test.test_1413192
except:
for f in ['__db.001', '__db.002', '__db.003', 'log.0000000001']:
- unlink(f)
+ try:
+ os.unlink(f)
+ except OSError:
+ pass
test_modules = [
'test_associate',