Skip to content

Commit f015e18

Browse files
committed
Add primitive test for frozen package.
1 parent fe03e81 commit f015e18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/frozen.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ static unsigned char M___hello__[] = {
4747
};
4848

4949
static struct _frozen _PyImport_FrozenModules[] = {
50+
/* Test module */
5051
{"__hello__", M___hello__, 90},
52+
/* Test package (negative size indicates package-ness) */
53+
{"__phello__", M___hello__, -90},
54+
{"__phello__.spam", M___hello__, 90},
5155
{0, 0, 0} /* sentinel */
5256
};
5357

0 commit comments

Comments
 (0)