diff options
author | Jesus Cea <jcea@jcea.es> | 2008-09-03 22:07:33 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2008-09-03 22:07:33 (GMT) |
commit | a64072f994d8ddc748948e0b8376e69881cf26ac (patch) | |
tree | de158530d9b3ef77b3330f40980154ce5077df89 /Lib/test | |
parent | 2ab344428449792e293c0c4d276fc66d26e919e5 (diff) | |
download | cpython-a64072f994d8ddc748948e0b8376e69881cf26ac.zip cpython-a64072f994d8ddc748948e0b8376e69881cf26ac.tar.gz cpython-a64072f994d8ddc748948e0b8376e69881cf26ac.tar.bz2 |
Python3.0 bsddb testsuite compatibility improvements
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_bsddb3.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/test/test_bsddb3.py b/Lib/test/test_bsddb3.py index 41d0e21..9079b0e 100644 --- a/Lib/test/test_bsddb3.py +++ b/Lib/test/test_bsddb3.py @@ -11,9 +11,6 @@ from test.support import requires, verbose, run_unittest, unlink, rmtree # When running as a script instead of within the regrtest framework, skip the # requires test, since it's obvious we want to run them. -if __name__ != '__main__': - requires('bsddb') - verbose = False if 'verbose' in sys.argv: verbose = True @@ -52,6 +49,10 @@ class TimingCheck(unittest.TestCase): def test_main(): from bsddb import db from bsddb.test import test_all + + # This must be improved... + test_all.do_proxy_db_py3k(True) + test_all.set_test_path_prefix(os.path.join(tempfile.gettempdir(), 'z-test_bsddb3-%s' % os.getpid())) @@ -73,6 +74,9 @@ def test_main(): except: pass + # This must be improved... + test_all.do_proxy_db_py3k(False) + if __name__ == '__main__': test_main() |