forked from OSchip/llvm-project
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:
parent
e399e5bd3d
commit
74b7965d38
|
@ -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__)
|
||||
|
|
Loading…
Reference in New Issue