[Python-checkins] r76199 - python/trunk/Lib/unittest/runner.py

antoine.pitrou python-checkins at python.org
Tue Nov 10 22:39:25 CET 2009


Author: antoine.pitrou
Date: Tue Nov 10 22:39:25 2009
New Revision: 76199

Log:
Backport micro-fix from the py3k svnmerge



Modified:
   python/trunk/Lib/unittest/runner.py

Modified: python/trunk/Lib/unittest/runner.py
==============================================================================
--- python/trunk/Lib/unittest/runner.py	(original)
+++ python/trunk/Lib/unittest/runner.py	Tue Nov 10 22:39:25 2009
@@ -12,7 +12,7 @@
         self.stream = stream
 
     def __getattr__(self, attr):
-        if attr == 'stream':
+        if attr in ('stream', '__getstate__'):
             raise AttributeError(attr)
         return getattr(self.stream,attr)
 


More information about the Python-checkins mailing list