]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40413: test_embed tests calling Py_RunMain() multiple times (GH-28466) (GH-28471)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Sep 2021 15:51:32 +0000 (08:51 -0700)
committerGitHub <noreply@github.com>
Mon, 20 Sep 2021 15:51:32 +0000 (17:51 +0200)
commit29e431419a0c23340099a9cd8cf23ec9c7788879
treec02c0e3f7b82b18c7a8d042f42d0f4842c25156b
parent50c0551f97f86bbf9f659e1bbe78a14df7754cbe
bpo-40413: test_embed tests calling Py_RunMain() multiple times (GH-28466) (GH-28471)

Calling Py_InitializeFromConfig()+Py_RunMain() multiple times must
not crash.

Cleanup also test_get_argc_argv().
(cherry picked from commit 5e2c32e08ed77081cabd9d51f0589f81c1572732)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_embed.py
Programs/_testembed.c