Message 166074 - Python tracker
> I wonder if it would be sensible to have test___all__ restore the > state of sys.modules after it runs. Probably not. I don't think we want to debug the consequences of having duplicate modules lying around by way of old references registered here and there.