Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-109276: libregrtest calls random.seed() before each test#109279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:regrtest_random
Sep 12, 2023

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commentedSep 11, 2023
edited by bedevere-appbot
Loading

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.

libregrtest now calls random.seed() before running each test filewhen -r/--randomize command line option is used. Moreover, it's alsocalled in worker processes. It should help to make tests moredeterministic. Previously, it was only called once in the mainprocess before running all test files and it was not called in workerprocesses.* 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.
@vstinnervstinner merged commita84cb74 intopython:mainSep 12, 2023
@vstinnervstinner deleted the regrtest_random branchSeptember 12, 2023 03:35
vstinner added a commit to vstinner/cpython that referenced this pull requestSep 13, 2023
…thon#109279)libregrtest now calls random.seed() before running each test filewhen -r/--randomize command line option is used. Moreover, it's alsocalled in worker processes. It should help to make tests moredeterministic. Previously, it was only called once in the mainprocess before running all test files and it was not called in workerprocesses.* 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.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp