mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-119727: Add --single-process option to regrtest (#119728)
(cherry picked from commit 4e8aa32245
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
3822d7cd28
commit
350313e731
4 changed files with 43 additions and 9 deletions
|
@ -475,6 +475,19 @@ class ParseArgsTestCase(unittest.TestCase):
|
|||
self.assertEqual(regrtest.hunt_refleak.runs, 10)
|
||||
self.assertFalse(regrtest.output_on_failure)
|
||||
|
||||
def test_single_process(self):
|
||||
args = ['-j2', '--single-process']
|
||||
with support.captured_stderr():
|
||||
regrtest = self.create_regrtest(args)
|
||||
self.assertEqual(regrtest.num_workers, 0)
|
||||
self.assertTrue(regrtest.single_process)
|
||||
|
||||
args = ['--fast-ci', '--single-process']
|
||||
with support.captured_stderr():
|
||||
regrtest = self.create_regrtest(args)
|
||||
self.assertEqual(regrtest.num_workers, 0)
|
||||
self.assertTrue(regrtest.single_process)
|
||||
|
||||
|
||||
@dataclasses.dataclass(slots=True)
|
||||
class Rerun:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue