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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
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
Show 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,6 +120,7 @@ class TestSuite(object):
...
@@ -120,6 +120,7 @@ class TestSuite(object):
assert
test
not
in
self
.
running
assert
test
not
in
self
.
running
self
.
running
[
test
]
=
instance
=
self
.
_pool
.
pop
(
0
)
self
.
running
[
test
]
=
instance
=
self
.
_pool
.
pop
(
0
)
def
run
():
def
run
():
try
:
self
.
_instance
.
id
=
instance
self
.
_instance
.
id
=
instance
if
instance
not
in
self
.
_ready
:
if
instance
not
in
self
.
_ready
:
self
.
_ready
.
add
(
instance
)
self
.
_ready
.
add
(
instance
)
...
@@ -128,6 +129,7 @@ class TestSuite(object):
...
@@ -128,6 +129,7 @@ class TestSuite(object):
if
on_stop
is
not
None
:
if
on_stop
is
not
None
:
on_stop
(
status_dict
)
on_stop
(
status_dict
)
self
.
_pool
.
append
(
self
.
running
.
pop
(
test
))
self
.
_pool
.
append
(
self
.
running
.
pop
(
test
))
finally
:
self
.
release
()
self
.
release
()
thread
=
threading
.
Thread
(
target
=
run
)
thread
=
threading
.
Thread
(
target
=
run
)
thread
.
setDaemon
(
True
)
thread
.
setDaemon
(
True
)
...
...
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