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

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

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):
         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)


_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to