summaryrefslogtreecommitdiffstats
path: root/SCons/Taskmaster
diff options
context:
space:
mode:
authorAndrew Morrow <andrew.morrow@viam.com>2023-12-14 15:56:14 (GMT)
committerAndrew Morrow <andrew.morrow@viam.com>2024-01-19 18:46:37 (GMT)
commit629b425f836c89ed2d25d2709610b32960d4d12e (patch)
tree7830a7dcbdef6207cd74963628a3268e14229f6a /SCons/Taskmaster
parent8c8052c95d4645a584b4332e11aabe0843446678 (diff)
downloadSCons-629b425f836c89ed2d25d2709610b32960d4d12e.zip
SCons-629b425f836c89ed2d25d2709610b32960d4d12e.tar.gz
SCons-629b425f836c89ed2d25d2709610b32960d4d12e.tar.bz2
fixup
Diffstat (limited to 'SCons/Taskmaster')
-rw-r--r--SCons/Taskmaster/JobTests.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/SCons/Taskmaster/JobTests.py b/SCons/Taskmaster/JobTests.py
index 3faa97d..b114d05 100644
--- a/SCons/Taskmaster/JobTests.py
+++ b/SCons/Taskmaster/JobTests.py
@@ -348,34 +348,6 @@ class SerialTestCase(unittest.TestCase):
"some task(s) failed to execute")
-class NoParallelTestCase(JobTestCase):
-
- def runTest(self) -> None:
- """test handling lack of parallel support"""
- def NoParallel(tm, num, stack_size):
- raise NameError
- save_Parallel = SCons.Taskmaster.Job.LegacyParallel
- SCons.Taskmaster.Job.LegacyParallel = NoParallel
- try:
- taskmaster = Taskmaster(num_tasks, self, RandomTask)
- jobs = SCons.Taskmaster.Job.Jobs(2, taskmaster)
- self.assertTrue(jobs.num_jobs == 1,
- "unexpected number of jobs %d" % jobs.num_jobs)
- jobs.run()
- self.assertTrue(taskmaster.tasks_were_serial(),
- "the tasks were not executed in series")
- self.assertTrue(taskmaster.all_tasks_are_executed(),
- "all the tests were not executed")
- self.assertTrue(taskmaster.all_tasks_are_iterated(),
- "all the tests were not iterated over")
- self.assertTrue(taskmaster.all_tasks_are_postprocessed(),
- "all the tests were not postprocessed")
- self.assertFalse(taskmaster.num_failed,
- "some task(s) failed to execute")
- finally:
- SCons.Taskmaster.Job.LegacyParallel = save_Parallel
-
-
class SerialExceptionTestCase(unittest.TestCase):
def runTest(self) -> None:
"""test a serial job with tasks that raise exceptions"""