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

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