Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
re6stnet
Commits
33b83d53
Commit
33b83d53
authored
May 16, 2024
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use with instead of direct call to exit
parent
6297a1f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
re6st/tests/test_end2end/test_registry_client.py
re6st/tests/test_end2end/test_registry_client.py
+2
-1
re6st/tests/test_network/re6st_wrap.py
re6st/tests/test_network/re6st_wrap.py
+4
-2
No files found.
re6st/tests/test_end2end/test_registry_client.py
View file @
33b83d53
...
...
@@ -42,7 +42,8 @@ class TestRegistryClientInteract(unittest.TestCase):
def
tearDown
(
self
):
self
.
server
.
proc
.
terminate
()
self
.
server
.
proc
.
__exit__
()
with
self
.
server
.
proc
:
pass
def
test_1_main
(
self
):
""" a client interact a server, no re6stnet node test basic function"""
...
...
re6st/tests/test_network/re6st_wrap.py
View file @
33b83d53
...
...
@@ -136,7 +136,8 @@ class Re6stRegistry:
try
:
logging
.
debug
(
"teminate process %s"
,
self
.
proc
.
pid
)
self
.
proc
.
destroy
()
self
.
proc
.
__exit__
()
with
self
.
proc
:
pass
except
:
pass
...
...
@@ -263,7 +264,8 @@ class Re6stNode:
"""stop running re6stnet process"""
logging
.
debug
(
"%s teminate process %s"
,
self
.
name
,
self
.
proc
.
pid
)
self
.
proc
.
destroy
()
self
.
proc
.
__exit__
()
with
self
.
proc
:
pass
def
__del__
(
self
):
"""teminate process and rm temp dir"""
...
...
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