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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f015e18d9dd0973056538387e70e14c17f418200;p=thirdparty%2FPython%2Fcpython.git Add primitive test for frozen package. --- diff --git a/Python/frozen.c b/Python/frozen.c index 4a8d457b6276..d97acf483eb9 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 */ };