]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135335: Simplify preload regression test using __main__ (GH-138686)
authorDuane Griffin <duaneg@dghda.com>
Sun, 23 Nov 2025 23:37:15 +0000 (12:37 +1300)
committerGitHub <noreply@github.com>
Sun, 23 Nov 2025 23:37:15 +0000 (15:37 -0800)
commit425f24e4fad672c211307a9f0018c8d39c4db9de
tree0d8eb70febf8c73e5e5c6ecb272fb0a60d96bdb0
parent23b67aa037cbb89b2a3d2c5fc716ca18f5b15b87
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.
Lib/test/_test_multiprocessing.py
Lib/test/mp_preload_flush.py