mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Fix dbshelve and much of dbtables.
This commit is contained in:
parent
9b01862d32
commit
cccc58d993
4 changed files with 66 additions and 53 deletions
|
|
@ -65,7 +65,11 @@ class TableDBTestCase(unittest.TestCase):
|
|||
except dbtables.TableDBError:
|
||||
pass
|
||||
self.tdb.CreateTable(tabname, [colname])
|
||||
self.tdb.Insert(tabname, {colname: pickle.dumps(3.14159, 1)})
|
||||
try:
|
||||
self.tdb.Insert(tabname, {colname: pickle.dumps(3.14159, 1)})
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
if verbose:
|
||||
self.tdb._db_print()
|
||||
|
|
@ -109,7 +113,7 @@ class TableDBTestCase(unittest.TestCase):
|
|||
else :
|
||||
if verbose:
|
||||
print("values= %r" % (values,))
|
||||
raise "Wrong values returned!"
|
||||
self.fail("Wrong values returned!")
|
||||
|
||||
def test03(self):
|
||||
tabname = "test03"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue