rename some more tests to avoid duplicate names (#19123)
This commit is contained in:
parent
c82d9dee0f
commit
95536b8405
@ -167,13 +167,13 @@ class ParseArgsTestCase(unittest.TestCase):
|
|||||||
self.assertEqual(ns.testdir, os.path.join(support.SAVEDCWD, 'foo'))
|
self.assertEqual(ns.testdir, os.path.join(support.SAVEDCWD, 'foo'))
|
||||||
self.checkError(['--testdir'], 'expected one argument')
|
self.checkError(['--testdir'], 'expected one argument')
|
||||||
|
|
||||||
def test_findleaks(self):
|
def test_runleaks(self):
|
||||||
for opt in '-L', '--runleaks':
|
for opt in '-L', '--runleaks':
|
||||||
with self.subTest(opt=opt):
|
with self.subTest(opt=opt):
|
||||||
ns = regrtest._parse_args([opt])
|
ns = regrtest._parse_args([opt])
|
||||||
self.assertTrue(ns.runleaks)
|
self.assertTrue(ns.runleaks)
|
||||||
|
|
||||||
def test_findleaks(self):
|
def test_huntrleaks(self):
|
||||||
for opt in '-R', '--huntrleaks':
|
for opt in '-R', '--huntrleaks':
|
||||||
with self.subTest(opt=opt):
|
with self.subTest(opt=opt):
|
||||||
ns = regrtest._parse_args([opt, ':'])
|
ns = regrtest._parse_args([opt, ':'])
|
||||||
@ -201,7 +201,7 @@ class ParseArgsTestCase(unittest.TestCase):
|
|||||||
self.checkError([opt, '2', '-l'], "don't go together")
|
self.checkError([opt, '2', '-l'], "don't go together")
|
||||||
self.checkError([opt, '2', '-M', '4G'], "don't go together")
|
self.checkError([opt, '2', '-M', '4G'], "don't go together")
|
||||||
|
|
||||||
def test_findleaks(self):
|
def test_coverage(self):
|
||||||
for opt in '-T', '--coverage':
|
for opt in '-T', '--coverage':
|
||||||
with self.subTest(opt=opt):
|
with self.subTest(opt=opt):
|
||||||
ns = regrtest._parse_args([opt])
|
ns = regrtest._parse_args([opt])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user