diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2003-09-21 00:08:14 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2003-09-21 00:08:14 (GMT) |
commit | 41631e8f668c9c2c724731d207edcc39c6fcf38c (patch) | |
tree | 89612b4cc0c0a621cdd71cf4fa9a3df18e815437 /Lib/bsddb/test | |
parent | cec1b3f6a7e899179c6463145ceff47a6c5bc805 (diff) | |
download | cpython-41631e8f668c9c2c724731d207edcc39c6fcf38c.zip cpython-41631e8f668c9c2c724731d207edcc39c6fcf38c.tar.gz cpython-41631e8f668c9c2c724731d207edcc39c6fcf38c.tar.bz2 |
Adds basic support for BerkeleyDB 4.2.x. Compiles and passes tests; new
features in BerkeleyDB not exposed. notably: the DB_MPOOLFILE interface
has not yet been wrapped in an object.
Adds support for building and installing bsddb3 in python2.3 that has
an older version of this module installed as bsddb without conflicts.
The pybsddb.sf.net build/packaged version of the module uses a
dynamicly loadable module called _pybsddb rather than _bsddb.
Diffstat (limited to 'Lib/bsddb/test')
-rw-r--r-- | Lib/bsddb/test/test_all.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_associate.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_basics.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_compat.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_dbobj.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_dbshelve.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_dbtables.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_env_close.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_get_none.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_join.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_lock.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_misc.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_queue.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_recno.py | 6 | ||||
-rw-r--r-- | Lib/bsddb/test/test_thread.py | 6 |
15 files changed, 45 insertions, 45 deletions
diff --git a/Lib/bsddb/test/test_all.py b/Lib/bsddb/test/test_all.py index 358f5d1..3bf70d7 100644 --- a/Lib/bsddb/test/test_all.py +++ b/Lib/bsddb/test/test_all.py @@ -17,11 +17,11 @@ if 'silent' in sys.argv: # take care of old flag, just in case def print_versions(): try: + # For Pythons w/distutils pybsddb + from bsddb3 import db + except ImportError: # For Python 2.3 from bsddb import db - except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db print print '-=' * 38 print db.DB_VERSION_STRING diff --git a/Lib/bsddb/test/test_associate.py b/Lib/bsddb/test/test_associate.py index 5fe41a9..f810eb0 100644 --- a/Lib/bsddb/test/test_associate.py +++ b/Lib/bsddb/test/test_associate.py @@ -17,11 +17,11 @@ import unittest from test_all import verbose try: + # For Pythons w/distutils pybsddb + from bsddb3 import db, dbshelve +except ImportError: # For Python 2.3 from bsddb import db, dbshelve -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db, dbshelve #---------------------------------------------------------------------- diff --git a/Lib/bsddb/test/test_basics.py b/Lib/bsddb/test/test_basics.py index dbab231..2e6b922 100644 --- a/Lib/bsddb/test/test_basics.py +++ b/Lib/bsddb/test/test_basics.py @@ -13,11 +13,11 @@ from pprint import pprint import unittest try: + # For Pythons w/distutils pybsddb + from bsddb3 import db +except ImportError: # For Python 2.3 from bsddb import db -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db from test_all import verbose diff --git a/Lib/bsddb/test/test_compat.py b/Lib/bsddb/test/test_compat.py index 645cbd7..12464ca 100644 --- a/Lib/bsddb/test/test_compat.py +++ b/Lib/bsddb/test/test_compat.py @@ -10,11 +10,11 @@ import tempfile from test_all import verbose try: + # For Pythons w/distutils pybsddb + from bsddb3 import db, hashopen, btopen, rnopen +except ImportError: # For Python 2.3 from bsddb import db, hashopen, btopen, rnopen -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db, hashopen, btopen, rnopen class CompatibilityTestCase(unittest.TestCase): diff --git a/Lib/bsddb/test/test_dbobj.py b/Lib/bsddb/test/test_dbobj.py index 93ea7ba..6799fc9 100644 --- a/Lib/bsddb/test/test_dbobj.py +++ b/Lib/bsddb/test/test_dbobj.py @@ -4,11 +4,11 @@ import unittest import glob try: + # For Pythons w/distutils pybsddb + from bsddb3 import db, dbobj +except ImportError: # For Python 2.3 from bsddb import db, dbobj -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db, dbobj #---------------------------------------------------------------------- diff --git a/Lib/bsddb/test/test_dbshelve.py b/Lib/bsddb/test/test_dbshelve.py index 7491cb7..722ee5b 100644 --- a/Lib/bsddb/test/test_dbshelve.py +++ b/Lib/bsddb/test/test_dbshelve.py @@ -9,11 +9,11 @@ from types import * import unittest try: + # For Pythons w/distutils pybsddb + from bsddb3 import db, dbshelve +except ImportError: # For Python 2.3 from bsddb import db, dbshelve -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db, dbshelve from test_all import verbose diff --git a/Lib/bsddb/test/test_dbtables.py b/Lib/bsddb/test/test_dbtables.py index 685b08d..eb5758f 100644 --- a/Lib/bsddb/test/test_dbtables.py +++ b/Lib/bsddb/test/test_dbtables.py @@ -31,11 +31,11 @@ import unittest from test_all import verbose try: + # For Pythons w/distutils pybsddb + from bsddb3 import db, dbtables +except ImportError: # For Python 2.3 from bsddb import db, dbtables -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db, dbtables diff --git a/Lib/bsddb/test/test_env_close.py b/Lib/bsddb/test/test_env_close.py index 105be44..c112941 100644 --- a/Lib/bsddb/test/test_env_close.py +++ b/Lib/bsddb/test/test_env_close.py @@ -9,11 +9,11 @@ import glob import unittest try: + # For Pythons w/distutils pybsddb + from bsddb3 import db +except ImportError: # For Python 2.3 from bsddb import db -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db from test_all import verbose diff --git a/Lib/bsddb/test/test_get_none.py b/Lib/bsddb/test/test_get_none.py index 40b224e..5f09cec 100644 --- a/Lib/bsddb/test/test_get_none.py +++ b/Lib/bsddb/test/test_get_none.py @@ -8,11 +8,11 @@ from pprint import pprint import unittest try: + # For Pythons w/distutils pybsddb + from bsddb3 import db +except ImportError: # For Python 2.3 from bsddb import db -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db from test_all import verbose diff --git a/Lib/bsddb/test/test_join.py b/Lib/bsddb/test/test_join.py index 838ffe7..73edd11 100644 --- a/Lib/bsddb/test/test_join.py +++ b/Lib/bsddb/test/test_join.py @@ -16,11 +16,11 @@ import unittest from test_all import verbose try: + # For Pythons w/distutils pybsddb + from bsddb3 import db, dbshelve +except ImportError: # For Python 2.3 from bsddb import db, dbshelve -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db, dbshelve #---------------------------------------------------------------------- diff --git a/Lib/bsddb/test/test_lock.py b/Lib/bsddb/test/test_lock.py index 008f89d..4a5adc4 100644 --- a/Lib/bsddb/test/test_lock.py +++ b/Lib/bsddb/test/test_lock.py @@ -19,11 +19,11 @@ import unittest from test_all import verbose try: + # For Pythons w/distutils pybsddb + from bsddb3 import db +except ImportError: # For Python 2.3 from bsddb import db -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db #---------------------------------------------------------------------- diff --git a/Lib/bsddb/test/test_misc.py b/Lib/bsddb/test/test_misc.py index 43d194a..a66b1de 100644 --- a/Lib/bsddb/test/test_misc.py +++ b/Lib/bsddb/test/test_misc.py @@ -6,11 +6,11 @@ import sys import unittest try: + # For Pythons w/distutils pybsddb + from bsddb3 import db, dbshelve +except ImportError: # For Python 2.3 from bsddb import db, dbshelve -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db, dbshelve #---------------------------------------------------------------------- diff --git a/Lib/bsddb/test/test_queue.py b/Lib/bsddb/test/test_queue.py index 24b86cb..95cf20d 100644 --- a/Lib/bsddb/test/test_queue.py +++ b/Lib/bsddb/test/test_queue.py @@ -8,11 +8,11 @@ from pprint import pprint import unittest try: + # For Pythons w/distutils pybsddb + from bsddb3 import db +except ImportError: # For Python 2.3 from bsddb import db -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db from test_all import verbose diff --git a/Lib/bsddb/test/test_recno.py b/Lib/bsddb/test/test_recno.py index 3e517c1..87446d3 100644 --- a/Lib/bsddb/test/test_recno.py +++ b/Lib/bsddb/test/test_recno.py @@ -11,11 +11,11 @@ import unittest from test_all import verbose try: + # For Pythons w/distutils pybsddb + from bsddb3 import db +except ImportError: # For Python 2.3 from bsddb import db -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' diff --git a/Lib/bsddb/test/test_thread.py b/Lib/bsddb/test/test_thread.py index cf4237c..59af027 100644 --- a/Lib/bsddb/test/test_thread.py +++ b/Lib/bsddb/test/test_thread.py @@ -28,11 +28,11 @@ import unittest from test_all import verbose try: + # For Pythons w/distutils pybsddb + from bsddb3 import db, dbutils +except ImportError: # For Python 2.3 from bsddb import db, dbutils -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db, dbutils #---------------------------------------------------------------------- |