Kaydet (Commit) f015e18d authored tarafından Guido van Rossum's avatar Guido van Rossum

Add primitive test for frozen package.

üst fe03e81a
...@@ -47,7 +47,11 @@ static unsigned char M___hello__[] = { ...@@ -47,7 +47,11 @@ static unsigned char M___hello__[] = {
}; };
static struct _frozen _PyImport_FrozenModules[] = { static struct _frozen _PyImport_FrozenModules[] = {
/* Test module */
{"__hello__", M___hello__, 90}, {"__hello__", M___hello__, 90},
/* Test package (negative size indicates package-ness) */
{"__phello__", M___hello__, -90},
{"__phello__.spam", M___hello__, 90},
{0, 0, 0} /* sentinel */ {0, 0, 0} /* sentinel */
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment