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:
Antoine Pitrou 2009-11-10 20:49:30 +00:00
parent 610326d48a
commit 0734c632d5
3 changed files with 21 additions and 1 deletions

View file

@ -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):