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
61af5586
Commit
61af5586
authored
Jul 13, 2016
by
Jim Fulton
Committed by
GitHub
Jul 13, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #90 from zopefoundation/fix-testMinimizeTerminates
Fix testMinimizeTerminates
parents
5fa51838
f4e9202f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/ZODB/tests/testCache.py
src/ZODB/tests/testCache.py
+8
-1
No files found.
src/ZODB/tests/testCache.py
View file @
61af5586
...
@@ -142,6 +142,13 @@ class DBMethods(CacheTestBase):
...
@@ -142,6 +142,13 @@ class DBMethods(CacheTestBase):
# isn't looking out for this, it can get into an infinite loop
# isn't looking out for this, it can get into an infinite loop
# then, endlessly trying to ghostify an object that in turn keeps
# then, endlessly trying to ghostify an object that in turn keeps
# unghostifying itself again.
# unghostifying itself again.
# This test uses threads, so we can't use the default
# transaction manager.
for
conn
in
self
.
conns
:
conn
.
close
()
self
.
conns
[
0
]
=
self
.
db
.
open
(
transaction
.
TransactionManager
())
class
Worker
(
threading
.
Thread
):
class
Worker
(
threading
.
Thread
):
def
__init__
(
self
,
testcase
):
def
__init__
(
self
,
testcase
):
...
@@ -158,7 +165,7 @@ class DBMethods(CacheTestBase):
...
@@ -158,7 +165,7 @@ class DBMethods(CacheTestBase):
d
=
r
[
1
]
d
=
r
[
1
]
for
i
in
range
(
len
(
d
)):
for
i
in
range
(
len
(
d
)):
d
[
i
]
=
CantGetRidOfMe
(
i
)
d
[
i
]
=
CantGetRidOfMe
(
i
)
transaction
.
commit
()
conn
.
transaction_manager
.
commit
()
self
.
testcase
.
db
.
cacheMinimize
()
self
.
testcase
.
db
.
cacheMinimize
()
...
...
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