]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-124402: Speed up test_free_threading and test_super (#124491) (#124585)
authorVictor Stinner <vstinner@python.org>
Thu, 26 Sep 2024 20:44:36 +0000 (22:44 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2024 20:44:36 +0000 (13:44 -0700)
commit632844694e6e4477d26fde6f3fec8e8005b06495
treece456aeebb77de915e733cd1167ee7807030422a
parent9fc8771942d967ff49a79f0dd475387a54613b0d
[3.13] gh-124402: Speed up test_free_threading and test_super (#124491) (#124585)

gh-124402: Speed up test_free_threading and test_super (#124491)

* Reduce the number of iterations and the number of threads so a
  whole test file takes less than a minute.
* Refactor test_racing_iter_extend() to remove two levels of
  indentation.
* test_monitoring() uses a sleep of 100 ms instead of 1 second.

(cherry picked from commit 0387c34f7c91428681ca8a4ba4e3d22b9acffde4)
Lib/test/test_free_threading/test_list.py
Lib/test/test_free_threading/test_monitoring.py
Lib/test/test_free_threading/test_type.py
Lib/test/test_super.py