summaryrefslogtreecommitdiffstats
path: root/Programs/_testembed.c
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2021-12-28 02:05:50 (GMT)
committerGitHub <noreply@github.com>2021-12-28 02:05:50 (GMT)
commit196b53eb1e62871ca80dee180e4891b4dd5c52ac (patch)
tree8f20c0e4057215bc59e578a1e2b138db664d5b0e /Programs/_testembed.c
parent3581c7abbe15bad6ae08fc38887e5948f8f39e08 (diff)
downloadcpython-196b53eb1e62871ca80dee180e4891b4dd5c52ac.zip
cpython-196b53eb1e62871ca80dee180e4891b4dd5c52ac.tar.gz
cpython-196b53eb1e62871ca80dee180e4891b4dd5c52ac.tar.bz2
bpo-45189: Drop the "list_frozen" command from _test_embed. (GH-30273)
Diffstat (limited to 'Programs/_testembed.c')
-rw-r--r--Programs/_testembed.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index fc5f44d..b317819 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -1827,26 +1827,6 @@ static int test_frozenmain(void)
}
#endif // !MS_WINDOWS
-
-// List frozen modules.
-// Command used by Tools/scripts/generate_stdlib_module_names.py script.
-static int list_frozen(void)
-{
- const struct _frozen *p;
- for (p = _PyImport_FrozenBootstrap; ; p++) {
- if (p->name == NULL)
- break;
- printf("%s\n", p->name);
- }
- for (p = _PyImport_FrozenStdlib; ; p++) {
- if (p->name == NULL)
- break;
- printf("%s\n", p->name);
- }
- return 0;
-}
-
-
static int test_repeated_init_and_inittab(void)
{
// bpo-44441: Py_RunMain() must reset PyImport_Inittab at exit.
@@ -1960,8 +1940,6 @@ static struct TestCase TestCases[] = {
{"test_frozenmain", test_frozenmain},
#endif
- // Command
- {"list_frozen", list_frozen},
{NULL, NULL}
};