Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
0cc4eb38
Commit
0cc4eb38
authored
May 22, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always call release before thread exits.
parent
02bef475
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
product/ERP5Type/tests/ERP5TypeTestSuite.py
product/ERP5Type/tests/ERP5TypeTestSuite.py
+11
-9
No files found.
product/ERP5Type/tests/ERP5TypeTestSuite.py
View file @
0cc4eb38
...
...
@@ -120,15 +120,17 @@ class TestSuite(object):
assert
test
not
in
self
.
running
self
.
running
[
test
]
=
instance
=
self
.
_pool
.
pop
(
0
)
def
run
():
self
.
_instance
.
id
=
instance
if
instance
not
in
self
.
_ready
:
self
.
_ready
.
add
(
instance
)
self
.
setup
()
status_dict
=
self
.
run
(
test
)
if
on_stop
is
not
None
:
on_stop
(
status_dict
)
self
.
_pool
.
append
(
self
.
running
.
pop
(
test
))
self
.
release
()
try
:
self
.
_instance
.
id
=
instance
if
instance
not
in
self
.
_ready
:
self
.
_ready
.
add
(
instance
)
self
.
setup
()
status_dict
=
self
.
run
(
test
)
if
on_stop
is
not
None
:
on_stop
(
status_dict
)
self
.
_pool
.
append
(
self
.
running
.
pop
(
test
))
finally
:
self
.
release
()
thread
=
threading
.
Thread
(
target
=
run
)
thread
.
setDaemon
(
True
)
thread
.
start
()
...
...
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