mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
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:
parent
adf6a6c842
commit
c63ecee6c3
3 changed files with 19 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue