-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #605 from nose-devs/add-fix-for-subproc-tests
Add a fix for nose2's own subprocess tests (on top of #601)
- Loading branch information
Showing
15 changed files
with
81 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
*$py.class | ||
*.orig | ||
example.cfg | ||
.coverage | ||
.coverage* | ||
.idea | ||
nosetests.xml | ||
xunit.xml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
nose2/tests/functional/support/scenario/coverage_multiprocessing_with_combine/.coveragerc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[run] | ||
concurrency = multiprocessing |
Empty file.
12 changes: 12 additions & 0 deletions
12
nose2/tests/functional/support/scenario/coverage_multiprocessing_with_combine/lib/mod1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from multiprocessing import Process | ||
|
||
|
||
def method2(): | ||
return | ||
|
||
|
||
def method(): | ||
p = Process(target=method2) | ||
p.start() | ||
p.join() | ||
return True |
5 changes: 5 additions & 0 deletions
5
nose2/tests/functional/support/scenario/coverage_multiprocessing_with_combine/nose2.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[coverage] | ||
always-on = True | ||
coverage = lib | ||
coverage-config = .coveragerc | ||
coverage-combine = True |
8 changes: 8 additions & 0 deletions
8
nose2/tests/functional/support/scenario/coverage_multiprocessing_with_combine/test_lib.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import unittest | ||
|
||
from lib.mod1 import method | ||
|
||
|
||
class TestLib(unittest.TestCase): | ||
def test1(self): | ||
self.assertEqual(method(), True) |
2 changes: 2 additions & 0 deletions
2
nose2/tests/functional/support/scenario/coverage_multiprocessing_without_combine/.coveragerc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[run] | ||
concurrency = multiprocessing |
Empty file.
12 changes: 12 additions & 0 deletions
12
nose2/tests/functional/support/scenario/coverage_multiprocessing_without_combine/lib/mod1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from multiprocessing import Process | ||
|
||
|
||
def method2(): | ||
return | ||
|
||
|
||
def method(): | ||
p = Process(target=method2) | ||
p.start() | ||
p.join() | ||
return True |
4 changes: 4 additions & 0 deletions
4
nose2/tests/functional/support/scenario/coverage_multiprocessing_without_combine/nose2.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[coverage] | ||
always-on = True | ||
coverage = lib | ||
coverage-config = .coveragerc |
8 changes: 8 additions & 0 deletions
8
nose2/tests/functional/support/scenario/coverage_multiprocessing_without_combine/test_lib.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import unittest | ||
|
||
from lib.mod1 import method | ||
|
||
|
||
class TestLib(unittest.TestCase): | ||
def test1(self): | ||
self.assertEqual(method(), True) |
8 changes: 0 additions & 8 deletions
8
nose2/tests/functional/support/scenario/coverage_of_imports/lib20171102/mod1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters