diff options
Diffstat (limited to 'Lib/test/test_bsddb.py')
| -rwxr-xr-x | Lib/test/test_bsddb.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/test/test_bsddb.py b/Lib/test/test_bsddb.py index f6e6ad0..56dade4 100755 --- a/Lib/test/test_bsddb.py +++ b/Lib/test/test_bsddb.py @@ -4,11 +4,16 @@ """ import os, sys import copy -import bsddb -import dbhash # Just so we know it's imported import unittest from test import test_support +# Skip test if _bsddb wasn't built. +test_support.import_module('_bsddb') + +import bsddb +import dbhash # Just so we know it's imported + + class TestBSDDB(unittest.TestCase): openflag = 'c' |
