summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-05-26 20:26:43 +0000
committerZachary Turner <zturner@google.com>2015-05-26 20:26:43 +0000
commitffc7d6fe6e8909ee5f2d4c9bd6a04eab8b5d154c (patch)
treea4ca8160e72711f197f658b62c9c19fc1386ad9d /lldb
parent306278ff0dd2a08f992aafc59a02ca533c142eb6 (diff)
downloadbcm5719-llvm-ffc7d6fe6e8909ee5f2d4c9bd6a04eab8b5d154c.tar.gz
bcm5719-llvm-ffc7d6fe6e8909ee5f2d4c9bd6a04eab8b5d154c.zip
Have lldb-mi tests import pexpect at a narrower scope.
The tests are xfail'ed on Windows, but would still error out since they were importing pexpect at global scope. This way the tests will correctly report as unsupported. llvm-svn: 238249
Diffstat (limited to 'lldb')
-rw-r--r--lldb/test/tools/lldb-mi/lldbmi_testcase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/tools/lldb-mi/lldbmi_testcase.py b/lldb/test/tools/lldb-mi/lldbmi_testcase.py
index d059bf2f1f5..c9ba78203d7 100644
--- a/lldb/test/tools/lldb-mi/lldbmi_testcase.py
+++ b/lldb/test/tools/lldb-mi/lldbmi_testcase.py
@@ -3,7 +3,6 @@ Base class for lldb-mi test cases.
"""
from lldbtest import *
-import pexpect
import unittest2
class MiTestCaseBase(Base):
@@ -32,6 +31,7 @@ class MiTestCaseBase(Base):
Base.tearDown(self)
def spawnLldbMi(self, args=None):
+ import pexpect
self.child = pexpect.spawn("%s --interpreter %s" % (
self.lldbMiExec, args if args else ""))
self.child.setecho(True)
OpenPOWER on IntegriCloud