mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-83434: Disable XML in regrtest when -R option is used (#117232)
This commit is contained in:
parent
9f74e86c78
commit
d52bdfb19f
3 changed files with 34 additions and 1 deletions
|
@ -464,6 +464,24 @@ class ParseArgsTestCase(unittest.TestCase):
|
|||
regrtest = self.create_regrtest(args)
|
||||
self.assertTrue(regrtest.want_bisect)
|
||||
|
||||
def test_verbose3_huntrleaks(self):
|
||||
args = ['-R', '3:10', '--verbose3']
|
||||
with support.captured_stderr():
|
||||
regrtest = self.create_regrtest(args)
|
||||
self.assertIsNotNone(regrtest.hunt_refleak)
|
||||
self.assertEqual(regrtest.hunt_refleak.warmups, 3)
|
||||
self.assertEqual(regrtest.hunt_refleak.runs, 10)
|
||||
self.assertFalse(regrtest.output_on_failure)
|
||||
|
||||
def test_xml_huntrleaks(self):
|
||||
args = ['-R', '3:12', '--junit-xml', 'output.xml']
|
||||
with support.captured_stderr():
|
||||
regrtest = self.create_regrtest(args)
|
||||
self.assertIsNotNone(regrtest.hunt_refleak)
|
||||
self.assertEqual(regrtest.hunt_refleak.warmups, 3)
|
||||
self.assertEqual(regrtest.hunt_refleak.runs, 12)
|
||||
self.assertIsNone(regrtest.junit_filename)
|
||||
|
||||
|
||||
@dataclasses.dataclass(slots=True)
|
||||
class Rerun:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue