import unittest from bsddb.db import DB, DB_BTREE, DB_THREAD, DB_CREATE class InvalidFreeTest(unittest.TestCase): def test_get_both___this_test_causes_an_invalid_free(self): d = DB() d.open('db-temp-test', dbtype=DB_BTREE, flags=DB_THREAD|DB_CREATE) d.put('0', '-') d.get_both('0', '-') if __name__ == '__main__': unittest.main()