cpython: 460961e80e31 (original) (raw)
Mercurial > cpython
changeset 88055:460961e80e31
Issue #19946: appropriately skip new multiprocessing tests Thanks to Christian Heimes for noting the buildbot failures and to Zachary Ware for providing the patch to make the new tests play nice with both other platforms and unittest test discovery [#19946]
Nick Coghlan ncoghlan@gmail.com | |
---|---|
date | Thu, 19 Dec 2013 21:53:31 +1000 |
parents | 45bd58a15bb9 |
children | a454ca39b10a |
files | Lib/test/test_multiprocessing_main_handling.py |
diffstat | 1 files changed, 5 insertions(+), 9 deletions(-)[+] [-] Lib/test/test_multiprocessing_main_handling.py 14 |
line wrap: on
line diff
--- a/Lib/test/test_multiprocessing_main_handling.py +++ b/Lib/test/test_multiprocessing_main_handling.py @@ -130,10 +130,9 @@ def _make_launch_script(script_dir, scri class MultiProcessingCmdLineMixin(): maxDiff = None # Show full tracebacks on subprocess failure
- def setupClass(cls):
if cls.start_method not in _concrete_contexts:[](#l1.8)
raise unittest.SkipTest("%r start method not available" %[](#l1.9)
cls.start_method)[](#l1.10)
- def setUp(self):
if self.start_method not in _concrete_contexts:[](#l1.12)
self.skipTest("%r start method not available" % self.start_method)[](#l1.13)
def _check_output(self, script_name, exit_code, out, err): if verbose > 1: @@ -277,11 +276,8 @@ class ForkServerCmdLineTest(MultiProcess start_method = 'forkserver' main_in_children_source = test_source_main_skipped_in_children -def test_main():
+def tearDownModule(): support.reap_children() if name == 'main':