Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
4f93c682
Commit
4f93c682
authored
Mar 24, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue #155: skeletal fork_test.
parent
20780820
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
test.sh
test.sh
+1
-0
tests/fork_test.py
tests/fork_test.py
+19
-0
No files found.
test.sh
View file @
4f93c682
...
@@ -40,6 +40,7 @@ run_test tests/call_function_test.py
...
@@ -40,6 +40,7 @@ run_test tests/call_function_test.py
run_test tests/channel_test.py
run_test tests/channel_test.py
run_test tests/fakessh_test.py
run_test tests/fakessh_test.py
run_test tests/first_stage_test.py
run_test tests/first_stage_test.py
run_test tests/fork_test.py
run_test tests/id_allocation_test.py
run_test tests/id_allocation_test.py
run_test tests/importer_test.py
run_test tests/importer_test.py
run_test tests/latch_test.py
run_test tests/latch_test.py
...
...
tests/fork_test.py
0 → 100644
View file @
4f93c682
import
os
import
mitogen
import
unittest2
import
testlib
import
plain_old_module
class
ForkTest
(
testlib
.
RouterMixin
,
unittest2
.
TestCase
):
def
test_okay
(
self
):
context
=
self
.
router
.
fork
()
self
.
assertNotEqual
(
context
.
call
(
os
.
getpid
),
os
.
getpid
())
self
.
assertEqual
(
context
.
call
(
os
.
getppid
),
os
.
getpid
())
if
__name__
==
'__main__'
:
unittest2
.
main
()
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