Merged revisions 76196 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76196 | antoine.pitrou | 2009-11-10 21:49:30 +0100 (mar., 10 nov. 2009) | 8 lines

  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 21:34:48 +00:00
parent adf6a6c842
commit c63ecee6c3
3 changed files with 19 additions and 1 deletions

View file

@ -12,6 +12,8 @@ class _WritelnDecorator(object):
self.stream = stream
def __getattr__(self, attr):
if attr in ('stream', '__getstate__'):
raise AttributeError(attr)
return getattr(self.stream,attr)
def writeln(self, arg=None):