]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-135335: Simplify preload regression test using __main__ (GH-138686) (#141887)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 24 Nov 2025 03:09:40 +0000 (04:09 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Nov 2025 03:09:40 +0000 (19:09 -0800)
commit47cb43c0f85159b67657c3152f85050cb640c4b4
treebab487c9a29c92d3b971fd8d4f3f085b33686a56
parent2e8d4f13a889486d6d3bf217299641137aad4e7d
[3.13] gh-135335: Simplify preload regression test using __main__ (GH-138686) (#141887)

gh-135335: Simplify preload regression test using __main__ (GH-138686)

Simplify preload regression test using `__main__`

With the fix for gh-126631 `__main__` modules can be preloaded and the regression
test for gh-135335 can be simplified to just use a self-contained script rather
than requiring a module.

Note this assumes and implicitly tests that `__main__` is preloaded by default.
(cherry picked from commit 425f24e4fad672c211307a9f0018c8d39c4db9de)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
Lib/test/_test_multiprocessing.py
Lib/test/mp_preload_flush.py