Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
80a1426b
Commit
80a1426b
authored
Jan 18, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print tracebacks for exceptions occurring in NEOCluster.__del__ .
parent
75e245fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+11
-6
No files found.
neo/tests/threaded/__init__.py
View file @
80a1426b
...
...
@@ -17,6 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import
os
,
random
,
socket
,
sys
,
tempfile
,
threading
,
time
,
types
,
weakref
import
traceback
from
collections
import
deque
from
itertools
import
count
from
functools
import
wraps
...
...
@@ -665,12 +666,16 @@ class NEOCluster(object):
txn
=
transaction
.
TransactionManager
()
return
txn
,
self
.
db
.
open
(
transaction_manager
=
txn
)
def
__del__
(
self
):
def
__del__
(
self
,
__print_exc
=
traceback
.
print_exc
):
try
:
self
.
neoctl
.
close
()
for
node_type
in
'admin'
,
'storage'
,
'master'
:
for
node
in
getattr
(
self
,
node_type
+
'_list'
):
node
.
close
()
self
.
client
.
em
.
close
()
except
:
__print_exc
()
raise
def
extraCellSortKey
(
self
,
key
):
return
Patch
(
self
.
client
.
cp
,
_getCellSortKey
=
lambda
orig
,
*
args
:
...
...
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