Don't automtically try to import pexpect in lldbpexpect.

Since pexpect doesn't exist on Windows, tests which are xfail'ed
are not being run at all because they are failing when the file
is imported due to the `import pexpect`.  This puts the import
behind a conditional and makes an empty base class in the case
where pexpect is not present.

llvm-svn: 258965
This commit is contained in:
Zachary Turner 2016-01-27 18:49:25 +00:00
parent e399e5bd3d
commit 74b7965d38
1 changed files with 47 additions and 41 deletions

View File

@ -6,13 +6,19 @@ import os
import sys
# Third-party modules
import pexpect
import six
# LLDB Modules
import lldb
from .lldbtest import *
from . import lldbutil
if sys.platform.startswith('win32'):
class PExpectTest(TestBase):
pass
else:
import pexpect
class PExpectTest(TestBase):
mydir = TestBase.compute_mydir(__file__)