This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Rachel Tobin
Recipients Rachel Tobin
Date 2017-08-28.23:53:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1503964395.2.0.931089155502.issue31297@psf.upfronthosting.co.za>
In-reply-to
Content
When running the unittest runner in parallel with an module import error present in your code, this exception is raised:

_pickle.PicklingError: Can't pickle <class 'unittest.loader.ModuleImportFailure'>: attribute lookup ModuleImportFailure on unittest.loader failed

unittest should be raising standard exceptions instead.

This was fixed in Python 3.4 with this patch: https://bugs.python.org/issue22903

Given that 2.7 is still supported, this patch should be backported.
History
Date User Action Args
2017-08-28 23:53:15Rachel Tobinsetrecipients: + Rachel Tobin
2017-08-28 23:53:15Rachel Tobinsetmessageid: <1503964395.2.0.931089155502.issue31297@psf.upfronthosting.co.za>
2017-08-28 23:53:15Rachel Tobinlinkissue31297 messages
2017-08-28 23:53:15Rachel Tobincreate