From 47dded644fecab52c6543bcabb67807ea201d710 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 10 Nov 2009 21:39:25 +0000 Subject: [PATCH] Backport micro-fix from the py3k svnmerge --- Lib/unittest/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.40.0