Commit 512d593d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5be2aab9
No preview for this file type
......@@ -29,12 +29,16 @@ import os, os.path, transaction
blksize = 2*1024*1024 # XXX hardcoded
blksize32 = blksize // 4
def rm_f(path):
if os.path.exists(path):
os.remove(path)
def main():
import zodbtools.test.gen_testdata # to make time predictable (XXX)
outfs = "testdata/zblk.fs"
if os.path.exists(outfs):
os.remove(outfs)
rm_f(outfs)
rm_f(outfs + ".index")
db = DB(outfs)
conn = db.open()
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