mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
gh-109162: Regrtest copies 'ns' attributes (#109168)
* Regrtest.__init__() now copies 'ns' namespace attributes to Regrtest attributes. Regrtest match_tests and ignore_tests attributes have type FilterTuple (tuple), instead of a list. * Add RunTests.copy(). Regrtest._rerun_failed_tests() now uses RunTests.copy(). * Replace Regrtest.all_tests (list) with Regrtest.first_runtests (RunTests). * Make random_seed maximum 10x larger (9 digits, instead of 8).
This commit is contained in:
parent
5b7303e265
commit
ac8409b38b
3 changed files with 73 additions and 48 deletions
|
@ -589,7 +589,7 @@ class BaseTestCase(unittest.TestCase):
|
|||
def parse_random_seed(self, output):
|
||||
match = self.regex_search(r'Using random seed ([0-9]+)', output)
|
||||
randseed = int(match.group(1))
|
||||
self.assertTrue(0 <= randseed <= 10000000, randseed)
|
||||
self.assertTrue(0 <= randseed <= 100_000_000, randseed)
|
||||
return randseed
|
||||
|
||||
def run_command(self, args, input=None, exitcode=0, **kw):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue