-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update 3.11 and 3.12 tests to use submodules (#164)
* 3.12 tests use submodules * update travis test runner for test submodules * 3.11 tests use submodules * use elif for test submodule cases * fix typo in travis elif
- Loading branch information
Showing
40 changed files
with
382 additions
and
113 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
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 was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
py3.11/multiprocess/tests/test_multiprocessing_fork/__init__.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,36 @@ | ||
import os.path | ||
import sys | ||
import unittest | ||
from test import support | ||
import glob | ||
import subprocess as sp | ||
python = sys.executable | ||
try: | ||
import pox | ||
python = pox.which_python(version=True) or python | ||
except ImportError: | ||
pass | ||
shell = sys.platform[:3] == 'win' | ||
|
||
if support.PGO: | ||
raise unittest.SkipTest("test is not helpful for PGO") | ||
|
||
if sys.platform == "win32": | ||
raise unittest.SkipTest("fork is not available on Windows") | ||
|
||
if sys.platform == 'darwin': | ||
raise unittest.SkipTest("test may crash on macOS (bpo-33725)") | ||
|
||
suite = os.path.dirname(__file__) or os.path.curdir | ||
tests = glob.glob(suite + os.path.sep + 'test_*.py') | ||
|
||
|
||
if __name__ == '__main__': | ||
|
||
failed = 0 | ||
for test in tests: | ||
p = sp.Popen([python, test], shell=shell).wait() | ||
if p: | ||
failed = 1 | ||
print('') | ||
exit(failed) |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_fork/test_manager.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'fork', only_type="manager") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_fork/test_misc.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'fork', exclude_types=True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_fork/test_processes.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'fork', only_type="processes") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_fork/test_threads.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'fork', only_type="threads") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
16 changes: 0 additions & 16 deletions
16
py3.11/multiprocess/tests/test_multiprocessing_forkserver.py
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
py3.11/multiprocess/tests/test_multiprocessing_forkserver/__init__.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,33 @@ | ||
import os.path | ||
import sys | ||
import unittest | ||
from test import support | ||
import glob | ||
import subprocess as sp | ||
python = sys.executable | ||
try: | ||
import pox | ||
python = pox.which_python(version=True) or python | ||
except ImportError: | ||
pass | ||
shell = sys.platform[:3] == 'win' | ||
|
||
if support.PGO: | ||
raise unittest.SkipTest("test is not helpful for PGO") | ||
|
||
if sys.platform == "win32": | ||
raise unittest.SkipTest("forkserver is not available on Windows") | ||
|
||
suite = os.path.dirname(__file__) or os.path.curdir | ||
tests = glob.glob(suite + os.path.sep + 'test_*.py') | ||
|
||
|
||
if __name__ == '__main__': | ||
|
||
failed = 0 | ||
for test in tests: | ||
p = sp.Popen([python, test], shell=shell).wait() | ||
if p: | ||
failed = 1 | ||
print('') | ||
exit(failed) |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_forkserver/test_manager.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'forkserver', only_type="manager") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_forkserver/test_misc.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'forkserver', exclude_types=True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_forkserver/test_processes.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'forkserver', only_type="processes") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_forkserver/test_threads.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,7 @@ | ||
import unittest | ||
from multiprocess.tests 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.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
py3.11/multiprocess/tests/test_multiprocessing_spawn/__init__.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,30 @@ | ||
import os.path | ||
import sys | ||
import unittest | ||
from test import support | ||
import glob | ||
import subprocess as sp | ||
python = sys.executable | ||
try: | ||
import pox | ||
python = pox.which_python(version=True) or python | ||
except ImportError: | ||
pass | ||
shell = sys.platform[:3] == 'win' | ||
|
||
if support.PGO: | ||
raise unittest.SkipTest("test is not helpful for PGO") | ||
|
||
suite = os.path.dirname(__file__) or os.path.curdir | ||
tests = glob.glob(suite + os.path.sep + 'test_*.py') | ||
|
||
|
||
if __name__ == '__main__': | ||
|
||
failed = 0 | ||
for test in tests: | ||
p = sp.Popen([python, test], shell=shell).wait() | ||
if p: | ||
failed = 1 | ||
print('') | ||
exit(failed) |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_spawn/test_manager.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'spawn', only_type="manager") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_spawn/test_misc.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'spawn', exclude_types=True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_spawn/test_processes.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'spawn', only_type="processes") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.11/multiprocess/tests/test_multiprocessing_spawn/test_threads.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'spawn', only_type="threads") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
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 was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
py3.12/multiprocess/tests/test_multiprocessing_fork/__init__.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,36 @@ | ||
import os.path | ||
import sys | ||
import unittest | ||
from test import support | ||
import glob | ||
import subprocess as sp | ||
python = sys.executable | ||
try: | ||
import pox | ||
python = pox.which_python(version=True) or python | ||
except ImportError: | ||
pass | ||
shell = sys.platform[:3] == 'win' | ||
|
||
if support.PGO: | ||
raise unittest.SkipTest("test is not helpful for PGO") | ||
|
||
if sys.platform == "win32": | ||
raise unittest.SkipTest("fork is not available on Windows") | ||
|
||
if sys.platform == 'darwin': | ||
raise unittest.SkipTest("test may crash on macOS (bpo-33725)") | ||
|
||
suite = os.path.dirname(__file__) or os.path.curdir | ||
tests = glob.glob(suite + os.path.sep + 'test_*.py') | ||
|
||
|
||
if __name__ == '__main__': | ||
|
||
failed = 0 | ||
for test in tests: | ||
p = sp.Popen([python, test], shell=shell).wait() | ||
if p: | ||
failed = 1 | ||
print('') | ||
exit(failed) |
7 changes: 7 additions & 0 deletions
7
py3.12/multiprocess/tests/test_multiprocessing_fork/test_manager.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'fork', only_type="manager") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.12/multiprocess/tests/test_multiprocessing_fork/test_misc.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'fork', exclude_types=True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.12/multiprocess/tests/test_multiprocessing_fork/test_processes.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'fork', only_type="processes") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
7 changes: 7 additions & 0 deletions
7
py3.12/multiprocess/tests/test_multiprocessing_fork/test_threads.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,7 @@ | ||
import unittest | ||
from multiprocess.tests import install_tests_in_module_dict | ||
|
||
install_tests_in_module_dict(globals(), 'fork', only_type="threads") | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
16 changes: 0 additions & 16 deletions
16
py3.12/multiprocess/tests/test_multiprocessing_forkserver.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.