Changeset 69
- Timestamp:
- Thu Jun 29 22:15:42 2006
- Files:
-
- branches/0.9-stable/nose/result.py (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
branches/0.9-stable/nose/result.py
r58 r69 85 85 86 86 def getBuffer(self): 87 try: 88 return sys.stdout.getvalue() 89 except AttributeError: 90 # capture is probably off 91 return '' 87 if stdout: 88 try: 89 return sys.stdout.getvalue() 90 except AttributeError: 91 pass 92 # capture is probably off 93 return '' 92 94 93 95 def isDeprecated(self, err): … … 102 104 103 105 def resetBuffer(self): 104 sys.stdout.truncate(0) 105 sys.stdout.seek(0) 106 if stdout: 107 sys.stdout.truncate(0) 108 sys.stdout.seek(0) 106 109 107 110 def startTest(self, test):
