From: Guido van Rossum Date: Fri, 3 Apr 1998 21:10:36 +0000 (+0000) Subject: Add primitive test for frozen package. X-Git-Tag: v1.5.1~209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f015e18d9dd0973056538387e70e14c17f418200;p=python Add primitive test for frozen package. --- diff --git a/Python/frozen.c b/Python/frozen.c index 4a8d457b62..d97acf483e 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 */ };