summaryrefslogtreecommitdiffstats
path: root/Python/frozen.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-03 21:10:36 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-03 21:10:36 (GMT)
commitf015e18d9dd0973056538387e70e14c17f418200 (patch)
treee5e4a0519e1213c4d0f8691936d056f3aeb32561 /Python/frozen.c
parentfe03e81aa59cec06d66d40fd1801551418e58468 (diff)
downloadcpython-f015e18d9dd0973056538387e70e14c17f418200.zip
cpython-f015e18d9dd0973056538387e70e14c17f418200.tar.gz
cpython-f015e18d9dd0973056538387e70e14c17f418200.tar.bz2
Add primitive test for frozen package.
Diffstat (limited to 'Python/frozen.c')
-rw-r--r--Python/frozen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/frozen.c b/Python/frozen.c
index 4a8d457..d97acf4 100644
--- a/Python/frozen.c
+++ b/Python/frozen.c
@@ -47,7 +47,11 @@ static unsigned char M___hello__[] = {
};
static struct _frozen _PyImport_FrozenModules[] = {
+ /* Test module */
{"__hello__", M___hello__, 90},
+ /* Test package (negative size indicates package-ness) */
+ {"__phello__", M___hello__, -90},
+ {"__phello__.spam", M___hello__, 90},
{0, 0, 0} /* sentinel */
};