diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-12 05:35:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 05:35:08 +0200 |
commit | a84cb74d42a28cf8e72ed7b5d9412fc13d18c817 (patch) | |
tree | a3d007a2718db76fc6cca4ed21c00ae84c1b440c /Lib/test/tokenizedata/coding20731.py | |
parent | 4e77645986fd27beaf25779426ae8580009fae33 (diff) | |
download | cpython-a84cb74d42a28cf8e72ed7b5d9412fc13d18c817.tar.gz cpython-a84cb74d42a28cf8e72ed7b5d9412fc13d18c817.zip |
gh-109276: libregrtest calls random.seed() before each test (#109279)
libregrtest now calls random.seed() before running each test file
when -r/--randomize command line option is used. Moreover, it's also
called in worker processes. It should help to make tests more
deterministic. Previously, it was only called once in the main
process before running all test files and it was not called in worker
processes.
* Convert some f-strings to regular strings in test_regrtest when
f-string is not needed.
* Remove unused all_methods variable from test_regrtest.
* Add RunTests members are now mandatory.
Diffstat (limited to 'Lib/test/tokenizedata/coding20731.py')
0 files changed, 0 insertions, 0 deletions