summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-11-10 20:49:30 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-11-10 20:49:30 (GMT)
commit0734c632d583578a52e83cd88063a95455436b83 (patch)
tree045e042e985707c676609e019c3ee2359e6c5d8c /Lib/unittest
parent610326d48ac112524ede8182f695fdf8115a0c92 (diff)
downloadcpython-0734c632d583578a52e83cd88063a95455436b83.zip
cpython-0734c632d583578a52e83cd88063a95455436b83.tar.gz
cpython-0734c632d583578a52e83cd88063a95455436b83.tar.bz2
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.
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/unittest/runner.py b/Lib/unittest/runner.py
index 67839f5..99819df 100644
--- a/Lib/unittest/runner.py
+++ b/Lib/unittest/runner.py
@@ -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):