mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-45189: Drop the "list_frozen" command from _test_embed. (GH-30273)
This commit is contained in:
parent
3581c7abbe
commit
196b53eb1e
2 changed files with 5 additions and 32 deletions
|
@ -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}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue