| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'fork', only_type="manager") | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'fork', exclude_types=True) | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'fork', only_type="processes") | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'fork', only_type="threads") | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'forkserver', only_type="manager") | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'forkserver', exclude_types=True) | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'forkserver', only_type="processes") | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'forkserver', only_type="threads") | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import os.path | ||
| import unittest | ||
| from test import support | ||
|
|
||
| if support.PGO: | ||
| raise unittest.SkipTest("test is not helpful for PGO") | ||
|
|
||
| def load_tests(*args): | ||
| return support.load_package_tests(os.path.dirname(__file__), *args) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'spawn', only_type="manager") | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'spawn', exclude_types=True) | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'spawn', only_type="processes") | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import unittest | ||
| from test._test_multiprocessing import install_tests_in_module_dict | ||
|
|
||
| install_tests_in_module_dict(globals(), 'spawn', only_type="threads") | ||
|
|
||
| if __name__ == '__main__': | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Split test_multiprocessing_fork, test_multiprocessing_forkserver and | ||
| test_multiprocessing_spawn into test packages. Each package is made of 4 | ||
| sub-tests: processes, threads, manager and misc. It allows running more tests | ||
| in parallel and so reduce the total test duration. Patch by Victor Stinner. |
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis function needs proper documentation as to what it does and how it behaves. The new parameters behaviors are unobvious.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.