diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-08 23:48:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 23:48:54 (GMT) |
commit | ac8409b38b5a11d88b2cfe4e38a712e8967ec843 (patch) | |
tree | 1d2897bc899ccedb33015323c83409c6e0259c0a /Lib/test/test_regrtest.py | |
parent | 5b7303e2653a0723a3e4c767d03dd02681206ca8 (diff) | |
download | cpython-ac8409b38b5a11d88b2cfe4e38a712e8967ec843.zip cpython-ac8409b38b5a11d88b2cfe4e38a712e8967ec843.tar.gz cpython-ac8409b38b5a11d88b2cfe4e38a712e8967ec843.tar.bz2 |
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).
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r-- | Lib/test/test_regrtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py index aff5404..ece8c1f 100644 --- a/Lib/test/test_regrtest.py +++ b/Lib/test/test_regrtest.py @@ -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): |