[Lldb-commits] [lldb] r137776 - /lldb/trunk/test/lldbtest.py
Johnny Chen
johnny.chen at apple.com
Tue Aug 16 15:06:17 PDT 2011
Author: johnny
Date: Tue Aug 16 17:06:17 2011
New Revision: 137776
URL: http://llvm.org/viewvc/llvm-project?rev=137776&view=rev
Log:
Add comment about recent change.
Modified:
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=137776&r1=137775&r2=137776&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue Aug 16 17:06:17 2011
@@ -240,6 +240,8 @@
def __init__(self, test, trace):
"""Create a StringIO instance; record the session obj and trace flag."""
StringIO.StringIO.__init__(self)
+ # The test might not have undergone the 'setUp(self)' phase yet, so that
+ # the attribute 'session' might not even exist yet.
self.session = getattr(test, "session", None) if test else None
self.trace = trace
More information about the lldb-commits
mailing list