Skip to content

[3.11] gh-110756: Sync regrtest with main branch (#110758) #110781

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

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

vstinner
Copy link
Member

gh-110756: Sync regrtest with main branch

Copy files from main to this branch:

  • Lib/test/libregrtest/*.py
  • Lib/test/init.py
  • Lib/test/main.py
  • Lib/test/autotest.py
  • Lib/test/pythoninfo.py
  • Lib/test/regrtest.py
  • Lib/test/test_regrtest.py

Copy also changes from:

  • Lib/test/support/init.py
  • Lib/test/support/os_helper.py
  • Lib/test/support/testresult.py
  • Lib/test/support/threading_helper.py
  • Lib/test/test_support.py

Do not modify scripts running tests such as Makefile.pre.in, .github/workflows/build.yml or Tools/scripts/run_tests.py: do not use --fast-ci and --slow-ci in this change.

Changes:

  • SPLITTESTDIRS: don't include test_inspect.
  • Add utils.process_cpu_count() using len(os.sched_getaffinity(0)).
  • test_regrtest doesn't use @support.without_optimizer which doesn't exist in Python 3.11.
  • Add support.set_sanitizer_env_var().
  • Update test_faulthandler to use support.set_sanitizer_env_var().
  • @support.without_optimizer doesn't exist in 3.11.
  • Add support.Py_DEBUG.
  • regrtest.refleak: 3.11 doesn't have sys.getunicodeinternedsize.

pythongh-110756: Sync regrtest with main branch

Copy files from main to this branch:

* Lib/test/libregrtest/*.py
* Lib/test/__init__.py
* Lib/test/__main__.py
* Lib/test/autotest.py
* Lib/test/pythoninfo.py
* Lib/test/regrtest.py
* Lib/test/test_regrtest.py

Copy also changes from:

* Lib/test/support/__init__.py
* Lib/test/support/os_helper.py
* Lib/test/support/testresult.py
* Lib/test/support/threading_helper.py
* Lib/test/test_support.py

Do not modify scripts running tests such as Makefile.pre.in,
.github/workflows/build.yml or Tools/scripts/run_tests.py: do not use
--fast-ci and --slow-ci in this change.

Changes:

* SPLITTESTDIRS: don't include test_inspect.
* Add utils.process_cpu_count() using len(os.sched_getaffinity(0)).
* test_regrtest doesn't use @support.without_optimizer which doesn't
  exist in Python 3.11.
* Add support.set_sanitizer_env_var().
* Update test_faulthandler to use support.set_sanitizer_env_var().
* @support.without_optimizer doesn't exist in 3.11.
* Add support.Py_DEBUG.
* regrtest.refleak: 3.11 doesn't have sys.getunicodeinternedsize.
@vstinner vstinner enabled auto-merge (squash) October 12, 2023 21:20
@vstinner vstinner disabled auto-merge October 12, 2023 21:20
@vstinner vstinner enabled auto-merge (squash) October 12, 2023 21:21
@vstinner vstinner merged commit 26748ed into python:3.11 Oct 12, 2023
@vstinner vstinner deleted the regrtest11 branch October 12, 2023 21:45
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.

1 participant