Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-109162: Refactor Regrtest.main() #109163

Merged
merged 1 commit into from
Sep 8, 2023
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 8, 2023

  • main() now calls _parse_args() and pass 'ns' to Regrtest constructor. Remove kwargs argument from Regrtest.main().
  • _parse_args() checks ns.huntrleaks.
  • set_temp_dir() is now responsible to call expanduser().
  • Regrtest.main() sets self.tests earlier.
  • Add TestTuple and TestList types.
  • Rename MatchTests to MatchTestList and rename MatchTestsDict to MatchTestDict.
  • RunTests.tests type becomes TestTuple.

* main() now calls _parse_args() and pass 'ns' to Regrtest
  constructor.  Remove kwargs argument from Regrtest.main().
* _parse_args() checks ns.huntrleaks.
* set_temp_dir() is now responsible to call expanduser().
* Regrtest.main() sets self.tests earlier.
* Add TestTuple and TestList types.
* Rename MatchTests to FilterTuple and rename MatchTestsDict
  to FilterTestDict.
* TestResult.get_rerun_match_tests() return type
  is now FilterTuple: return a tuple instead of a list.
  RunTests.tests type becomes TestTuple.
@vstinner vstinner disabled auto-merge September 8, 2023 22:09
@vstinner vstinner enabled auto-merge (squash) September 8, 2023 22:26
@vstinner vstinner disabled auto-merge September 8, 2023 22:40
@vstinner vstinner enabled auto-merge (squash) September 8, 2023 22:40
@vstinner vstinner merged commit 5b7303e into python:main Sep 8, 2023
@vstinner vstinner deleted the regrtest_refactor1 branch September 8, 2023 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants