Long module names fail on the Mac. Or, more precisely, test_repr fails (if you take out
the "if" that disables the testing of long module names on the Mac).
It needs to be investigated whether it is the mkdir() calls and such in test_repr which
are the cause of the problem (in which case the problem is really with the test: methinks
platforms are free to raise EINVAL for "illegal" filenames in I/O calls).
The other question is what the Python specs say about the number of significant characters
in a module name, and how to handle modules that have names longer than the underlying
storage system supports. The language reference simply says that identifiers are unlimited in
length, but on Unix "unlimited" for modulenames means "255" (and probably something
similar on Windows).
This last paragraph is the reason I'm assigning this to Guido, I can't start on a fix until I
know what I should aim for. Feel free to assign it back (unless you want to fix it yourself:-).
|