Nick Coghlan <ncogh...@gmail.com> added the comment: Must have missed running the full test suite before checking that one in. Whoops...
Anyway, the culprit is a couple of copy_reg calls that the os module runs on import to register pickle support methods. CleanImport's simplistic approach to reversion leaves the replacement handlers registered even after the original os module has been restored, leading to copy_reg complaining when you attempt to use the registered pickle handlers. I'll narrow the scope to just reverting os.environ and otherwise leave the new os module in place. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7164> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com