Xiang Zhang added the comment:
Simple reproduction:
>>> pickle.dumps(unittest.loader._make_skipped_test('hello', RuntimeError,
>>> unittest.suite.TestSuite))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <class 'unittest.loader.ModuleSkipped'>:
attribute lookup ModuleSkipped on unittest.loader failed
Exporting ModuleSkipped in unittest.loader can solve this. But maybe any more
elegant method?
----------
nosy: +xiang.zhang
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25746>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com