anydbm test failures using Berkeley DB 4.2.52 on Solaris 8

Trying to test some of my obsolete platform excisions on more than just Mac OS X, I came across these test failures this evening on Solaris 8 when Berkeley DB 4.2.52 was installed: bash-2.03$ ./python Lib/test/test_anydbm.py test_anydbm_creation (__main__.AnyDBMTestCase) ... ok test_anydbm_keys (__main__.AnyDBMTestCase) ... ERROR test_anydbm_modification (__main__.AnyDBMTestCase) ... ERROR test_anydbm_read (__main__.AnyDBMTestCase) ... ERROR ====================================================================== ERROR: test_anydbm_keys (__main__.AnyDBMTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_anydbm.py", line 58, in test_anydbm_keys self.init_db() File "Lib/test/test_anydbm.py", line 69, in init_db f = anydbm.open(_fname, 'n') File "/export/home/skip/src/python/Lib/anydbm.py", line 83, in open return mod.open(file, flag, mode) File "/export/home/skip/src/python/Lib/dbhash.py", line 16, in open return bsddb.hashopen(file, flag, mode) File "/export/home/skip/src/python/Lib/bsddb/__init__.py", line 293, in hashopen d.open(file, db.DB_HASH, flags, mode) DBInvalidArgError: (22, 'Invalid argument -- DB_TRUNCATE illegal with locking specified') ====================================================================== ERROR: test_anydbm_modification (__main__.AnyDBMTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_anydbm.py", line 45, in test_anydbm_modification self.init_db() File "Lib/test/test_anydbm.py", line 69, in init_db f = anydbm.open(_fname, 'n') File "/export/home/skip/src/python/Lib/anydbm.py", line 83, in open return mod.open(file, flag, mode) File "/export/home/skip/src/python/Lib/dbhash.py", line 16, in open return bsddb.hashopen(file, flag, mode) File "/export/home/skip/src/python/Lib/bsddb/__init__.py", line 293, in hashopen d.open(file, db.DB_HASH, flags, mode) DBInvalidArgError: (22, 'Invalid argument -- DB_TRUNCATE illegal with locking specified') ====================================================================== ERROR: test_anydbm_read (__main__.AnyDBMTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_anydbm.py", line 52, in test_anydbm_read self.init_db() File "Lib/test/test_anydbm.py", line 69, in init_db f = anydbm.open(_fname, 'n') File "/export/home/skip/src/python/Lib/anydbm.py", line 83, in open return mod.open(file, flag, mode) File "/export/home/skip/src/python/Lib/dbhash.py", line 16, in open return bsddb.hashopen(file, flag, mode) File "/export/home/skip/src/python/Lib/bsddb/__init__.py", line 293, in hashopen d.open(file, db.DB_HASH, flags, mode) DBInvalidArgError: (22, 'Invalid argument -- DB_TRUNCATE illegal with locking specified') ---------------------------------------------------------------------- Ran 4 tests in 0.102s FAILED (errors=3) Traceback (most recent call last): File "Lib/test/test_anydbm.py", line 95, in ? test_main() File "Lib/test/test_anydbm.py", line 90, in test_main test_support.run_unittest(AnyDBMTestCase) File "/export/home/skip/src/python/Lib/test/test_support.py", line 290, in run_unittest run_suite(suite, testclass) File "/export/home/skip/src/python/Lib/test/test_support.py", line 274, in run_suite raise TestFailed(msg) test.test_support.TestFailed: errors occurred in __main__.AnyDBMTestCase I don't recall seeing these before, but this is the first time I've built from CVS on Solaris 8 w/ BDB 4.2.52. The same tests work fine with Python 2.3.3+Berkeley DB 4.2.52 (Lib/test/test_anydbm.py is the same in 2.3.3 and CVS). I'm going to make a wild ass guess and say these aren't related to what I'm doing. Greg, have you seen this before? Skip
participants (1)
-
Skip Montanaro