mirror of
https://github.com/python/cpython.git
synced 2025-11-14 07:49:28 +00:00
Issue #7197: Allow unittest.TextTestRunner objects to be pickled and
unpickled. This fixes crashes under Windows when trying to run test_multiprocessing in verbose mode. Additionally, Test_TextTestRunner hadn't been enabled in test_unittest.
This commit is contained in:
parent
610326d48a
commit
0734c632d5
3 changed files with 21 additions and 1 deletions
|
|
@ -12,6 +12,8 @@ class _WritelnDecorator(object):
|
|||
self.stream = stream
|
||||
|
||||
def __getattr__(self, attr):
|
||||
if attr == 'stream':
|
||||
raise AttributeError(attr)
|
||||
return getattr(self.stream,attr)
|
||||
|
||||
def writeln(self, arg=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue