Commit 2deffe15 authored by Stefan H. Holek's avatar Stefan H. Holek

Do away with DemoStorage quota.

parent 751d525e
...@@ -62,7 +62,7 @@ def makeConnection(): ...@@ -62,7 +62,7 @@ def makeConnection():
import ZODB import ZODB
from ZODB.DemoStorage import DemoStorage from ZODB.DemoStorage import DemoStorage
s = DemoStorage(quota=(1<<20)) s = DemoStorage()
return ZODB.DB( s ).open() return ZODB.DB( s ).open()
class CopySupportTestBase(unittest.TestCase): class CopySupportTestBase(unittest.TestCase):
......
...@@ -31,7 +31,7 @@ def makeConnection(): ...@@ -31,7 +31,7 @@ def makeConnection():
import ZODB import ZODB
from ZODB.DemoStorage import DemoStorage from ZODB.DemoStorage import DemoStorage
s = DemoStorage(quota=(1<<20)) s = DemoStorage()
return ZODB.DB( s ).open() return ZODB.DB( s ).open()
......
...@@ -28,7 +28,7 @@ def makeConnection(): ...@@ -28,7 +28,7 @@ def makeConnection():
import ZODB import ZODB
from ZODB.DemoStorage import DemoStorage from ZODB.DemoStorage import DemoStorage
s = DemoStorage(quota=(1<<20)) s = DemoStorage()
return ZODB.DB( s ).open() return ZODB.DB( s ).open()
def createBigFile(): def createBigFile():
......
...@@ -87,7 +87,7 @@ class TestTraverse( unittest.TestCase ): ...@@ -87,7 +87,7 @@ class TestTraverse( unittest.TestCase ):
from ZODB.DB import DB from ZODB.DB import DB
from ZODB.DemoStorage import DemoStorage from ZODB.DemoStorage import DemoStorage
s = DemoStorage(quota=(1<<20)) s = DemoStorage()
self.connection = DB(s).open() self.connection = DB(s).open()
try: try:
......
...@@ -45,7 +45,7 @@ stuff = {} ...@@ -45,7 +45,7 @@ stuff = {}
def _getDB(): def _getDB():
db = stuff.get('db') db = stuff.get('db')
if not db: if not db:
ds = DemoStorage(quota=(1<<20)) ds = DemoStorage()
db = ZODB.DB(ds, pool_size=60) db = ZODB.DB(ds, pool_size=60)
conn = db.open() conn = db.open()
root = conn.root() root = conn.root()
......
...@@ -29,7 +29,7 @@ def _getApp(): ...@@ -29,7 +29,7 @@ def _getApp():
app = stuff.get('app', None) app = stuff.get('app', None)
if not app: if not app:
ds = DemoStorage(quota=(1<<20)) ds = DemoStorage()
db = ZODB.DB(ds) db = ZODB.DB(ds)
conn = db.open() conn = db.open()
root = conn.root() root = conn.root()
......
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