summaryrefslogtreecommitdiffstats
path: root/lldb/test/lldbtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lldbtest.py')
-rw-r--r--lldb/test/lldbtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py
index c8c1142f451..f3e3a057aa4 100644
--- a/lldb/test/lldbtest.py
+++ b/lldb/test/lldbtest.py
@@ -240,7 +240,7 @@ class recording(StringIO.StringIO):
def __init__(self, test, trace):
"""Create a StringIO instance; record the session obj and trace flag."""
StringIO.StringIO.__init__(self)
- self.session = test.session if test else None
+ self.session = getattr(test, "session", None) if test else None
self.trace = trace
def __enter__(self):
OpenPOWER on IntegriCloud