Commit 2c3b49fe authored by Jim Fulton's avatar Jim Fulton

Use a file storage, rather than a ConflictResolvingMappingStorage.

parent f199bf96
...@@ -85,9 +85,8 @@ story. ...@@ -85,9 +85,8 @@ story.
First we create a storage and a database, and put a PCounter in the database. First we create a storage and a database, and put a PCounter in the database.
>>> from ZODB.DB import DB >>> import ZODB
>>> from ZODB.tests.util import ConflictResolvingMappingStorage >>> db = ZODB.DB('Data.fs')
>>> db = DB(ConflictResolvingMappingStorage())
>>> import transaction >>> import transaction
>>> tm_A = transaction.TransactionManager() >>> tm_A = transaction.TransactionManager()
>>> conn_A = db.open(transaction_manager=tm_A) >>> conn_A = db.open(transaction_manager=tm_A)
...@@ -420,10 +419,8 @@ integrity issues. ...@@ -420,10 +419,8 @@ integrity issues.
what is going on here. what is going on here.
>>> databases = {} >>> databases = {}
>>> db1 = DB(ConflictResolvingMappingStorage(), >>> db1 = ZODB.DB('1', databases=databases, database_name='1')
... databases=databases, database_name='1') >>> db2 = ZODB.DB('2', databases=databases, database_name='2')
>>> db2 = DB(ConflictResolvingMappingStorage(),
... databases=databases, database_name='2')
>>> tm_multi_A = transaction.TransactionManager() >>> tm_multi_A = transaction.TransactionManager()
>>> conn_1A = db1.open(transaction_manager=tm_multi_A) >>> conn_1A = db1.open(transaction_manager=tm_multi_A)
>>> conn_2A = conn_1A.get_connection('2') >>> conn_2A = conn_1A.get_connection('2')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment