Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
7b044c7d
Commit
7b044c7d
authored
Jan 05, 2008
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the transaction package now has a separate distribution.
parent
09eb0a8b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
19 deletions
+1
-19
buildout.cfg
buildout.cfg
+1
-1
src/ZEO/tests/test_cache.py
src/ZEO/tests/test_cache.py
+0
-18
No files found.
buildout.cfg
View file @
7b044c7d
[buildout]
[buildout]
develop = .
transaction
develop = .
parts = test scripts
parts = test scripts
find-links = http://download.zope.org/distribution/
find-links = http://download.zope.org/distribution/
...
...
src/ZEO/tests/test_cache.py
View file @
7b044c7d
...
@@ -68,23 +68,6 @@ def oid(o):
...
@@ -68,23 +68,6 @@ def oid(o):
return
repr_to_oid
(
repr
)
return
repr_to_oid
(
repr
)
tid
=
oid
tid
=
oid
class
FileCacheFuzzing
(
unittest
.
TestCase
):
def
testFileCacheFuzzing
(
self
):
cache_dummy
=
ClientCacheDummy
()
fc
=
ZEO
.
cache
.
FileCache
(
maxsize
=
5000
,
fpath
=
None
,
parent
=
cache_dummy
)
for
i
in
xrange
(
10000
):
size
=
random
.
randint
(
0
,
5500
)
obj
=
ZEO
.
cache
.
Object
(
key
=
(
oid
(
i
),
oid
(
1
)),
version
=
''
,
data
=
'*'
*
size
,
start_tid
=
oid
(
1
),
end_tid
=
None
)
fc
.
add
(
obj
)
#hexprint(fc.f)
fc
.
close
()
class
CacheTests
(
unittest
.
TestCase
):
class
CacheTests
(
unittest
.
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
...
@@ -285,6 +268,5 @@ class CacheTests(unittest.TestCase):
...
@@ -285,6 +268,5 @@ class CacheTests(unittest.TestCase):
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
CacheTests
))
suite
.
addTest
(
unittest
.
makeSuite
(
CacheTests
))
suite
.
addTest
(
unittest
.
makeSuite
(
FileCacheFuzzing
))
suite
.
addTest
(
doctest
.
DocFileSuite
(
'filecache.txt'
))
suite
.
addTest
(
doctest
.
DocFileSuite
(
'filecache.txt'
))
return
suite
return
suite
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment