On my Solaris 2.6 installation, with no bsddb module, I get test test___all__ failed -- dbhash has no __all__ attribute This is caused by anydbm importing dbhash first. After that fails, dbhash is still in sys.modules, and the next import of dbhash silently loads an incomplete module. Regards, Martin