]> granicus.if.org Git - python/commitdiff
Add primitive test for frozen package.
authorGuido van Rossum <guido@python.org>
Fri, 3 Apr 1998 21:10:36 +0000 (21:10 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 3 Apr 1998 21:10:36 +0000 (21:10 +0000)
Python/frozen.c

index 4a8d457b62760253a3b2eed7358b6bd6bf66776e..d97acf483eb9346cb3443e3e65f1be7577e3d0fa 100644 (file)
@@ -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 */
 };