[Lldb-commits] [lldb] r238249 - Have lldb-mi tests import pexpect at a narrower scope.

Zachary Turner zturner at google.com
Tue May 26 13:26:43 PDT 2015

Author: zturner
Date: Tue May 26 15:26:43 2015
New Revision: 238249

URL: http://llvm.org/viewvc/llvm-project?rev=238249&view=rev
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.


Modified: lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py?rev=238249&r1=238248&r2=238249&view=diff
--- lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py (original)
+++ lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py Tue May 26 15:26:43 2015
@@ -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):
     def spawnLldbMi(self, args=None):
+        import pexpect
         self.child = pexpect.spawn("%s --interpreter %s" % (
             self.lldbMiExec, args if args else ""))

More information about the lldb-commits mailing list