[New-bugs-announce] [issue31297] Unpickleable ModuleImportError in unittest patch not backported to 2.7
Rachel Tobin
report at bugs.python.org
Mon Aug 28 19:53:15 EDT 2017
New submission from Rachel Tobin:
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.
----------
components: Library (Lib)
messages: 300969
nosy: Rachel Tobin
priority: normal
severity: normal
status: open
title: Unpickleable ModuleImportError in unittest patch not backported to 2.7
type: crash
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31297>
_______________________________________
More information about the New-bugs-announce
mailing list