From: Antoine Pitrou Date: Tue, 10 Nov 2009 21:39:25 +0000 (+0000) Subject: Backport micro-fix from the py3k svnmerge X-Git-Tag: v2.7a1~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47dded644fecab52c6543bcabb67807ea201d710;p=python Backport micro-fix from the py3k svnmerge --- diff --git a/Lib/unittest/runner.py b/Lib/unittest/runner.py index 99819df853..3afbc0ece1 100644 --- a/Lib/unittest/runner.py +++ b/Lib/unittest/runner.py @@ -12,7 +12,7 @@ class _WritelnDecorator(object): self.stream = stream def __getattr__(self, attr): - if attr == 'stream': + if attr in ('stream', '__getstate__'): raise AttributeError(attr) return getattr(self.stream,attr)