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 libregrtest.Regrtest #109206

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 10, 2023

  • Add type hint types: TestName, StrPath, StrJSON.

  • Add attributes to Regrtest:

    • cmdline_args
    • coverage
    • coverage_dir
    • fail_rerun
    • next_single_filename
    • print_slowest
    • tmp_dir
    • want_rerun
    • want_run_leaks
  • Remove Regrtest.ns attribute.

  • Rename Regrtest methods:

    • cleanup() => cleanup_temp_dir()
    • create_temp_dir() => make_temp_dir()
    • set_temp_dir() => select_temp_dir()
  • Convert Regrtest methods to static methods:

    • cleanup_temp_dir()
    • display_header()
    • fix_umask()
    • get_rerun_match_tests()
    • list_tests()
    • make_temp_dir()
    • select_temp_dir()
  • Remove display_sanitizers() method: move code into display_header().

  • Rename 'test_cwd' variable to 'work_dir'.

* Add type hint types: TestName, StrPath, StrJSON.
* Add attributes to Regrtest:

  * cmdline_args
  * coverage
  * coverage_dir
  * fail_rerun
  * next_single_filename
  * print_slowest
  * tmp_dir
  * want_rerun
  * want_run_leaks

* Remove Regrtest.ns attribute.
* Rename Regrtest methods:

  * cleanup() => cleanup_temp_dir()
  * create_temp_dir() => make_temp_dir()
  * set_temp_dir() => select_temp_dir()

* Convert Regrtest methods to static methods:

  * cleanup_temp_dir()
  * display_header()
  * fix_umask()
  * get_rerun_match_tests()
  * list_tests()
  * make_temp_dir()
  * select_temp_dir()

* Remove display_sanitizers() method: move code into
  display_header().
* Rename 'test_cwd' variable to 'work_dir'.
@vstinner vstinner merged commit a341750 into python:main Sep 10, 2023
@vstinner vstinner deleted the regrtest_refactor10 branch September 10, 2023 01:07
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.

2 participants