Issue 22903: unittest creates non-picklable errors (original) (raw)
Issue22903
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/67092
classification
Title: | unittest creates non-picklable errors | ||
---|---|---|---|
Type: | behavior | Stage: | resolved |
Components: | Versions: | Python 3.4, Python 3.5 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | Nosy List: | ethan.furman, ezio.melotti, michael.foord, pitrou, python-dev, r.david.murray, rbcollins, serhiy.storchaka | |
Priority: | normal | Keywords: | patch |
Created on 2014-11-19 19:49 by pitrou, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
pickle_module_import_failure.patch | pitrou,2015-03-18 21:45 |
Messages (7) | ||
---|---|---|
msg231398 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2014-11-19 19:49 |
Just got this: _pickle.PicklingError: Can't pickle <class 'unittest.loader.ModuleImportFailure'>: attribute lookup ModuleImportFailure on unittest.loader failed unittest should use regular exception classes instead. | ||
msg231399 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2014-11-19 20:27 |
They aren't "real" exceptions, though, if I understand correctly. | ||
msg238474 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2015-03-18 21:45 |
Here is a patch. | ||
msg238476 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2015-03-18 22:11 |
classname is not used in _make_failed_test(). | ||
msg238478 - (view) | Author: Robert Collins (rbcollins) * ![]() |
Date: 2015-03-18 22:30 |
LGTM please commit. | ||
msg238480 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2015-03-18 23:01 |
New changeset f3977f34cf6c by Antoine Pitrou in branch '3.4': Issue #22903: The fake test case created by unittest.loader when it fails importing a test module is now picklable. https://hg.python.org/cpython/rev/f3977f34cf6c New changeset a1b5ac563d8d by Antoine Pitrou in branch 'default': Issue #22903: The fake test case created by unittest.loader when it fails importing a test module is now picklable. https://hg.python.org/cpython/rev/a1b5ac563d8d | ||
msg238481 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2015-03-18 23:02 |
Thanks! |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:10 | admin | set | github: 67092 |
2015-03-18 23:02:13 | pitrou | set | status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved |
2015-03-18 23:01:46 | python-dev | set | nosy: + python-devmessages: + |
2015-03-18 22:30:56 | rbcollins | set | messages: + |
2015-03-18 22:11:18 | serhiy.storchaka | set | nosy: + serhiy.storchakamessages: + |
2015-03-18 21:45:52 | pitrou | set | type: behaviorstage: patch review |
2015-03-18 21:45:44 | pitrou | set | files: + pickle_module_import_failure.patchkeywords: + patchmessages: + |
2014-11-19 20:27:24 | r.david.murray | set | nosy: + r.david.murraymessages: + |
2014-11-19 19:51:26 | ethan.furman | set | nosy: + ethan.furman |
2014-11-19 19:49:12 | pitrou | create |
Supported by The Python Software Foundation,
Powered by Roundup
Copyright © 1990-2022, Python Software Foundation
Legal Statements