Fixing a Darwing test thats failing on windows
authorDimitar Vlahovski <dvlahovski@google.com>
Fri, 19 Aug 2016 12:44:53 +0000 (12:44 +0000)
committerDimitar Vlahovski <dvlahovski@google.com>
Fri, 19 Aug 2016 12:44:53 +0000 (12:44 +0000)
The pexpect import should be make after the skip-if-not-darwin part
because pexpect is not available on Windows

llvm-svn: 279234

lldb/packages/Python/lldbsuite/test/darwin_log.py

index f2d4f1d..103341b 100644 (file)
@@ -7,7 +7,6 @@ from __future__ import print_function
 
 import json
 import os
-import pexpect
 import platform
 import re
 import sys
@@ -59,6 +58,7 @@ class DarwinLogTestBase(lldbtest.TestBase):
     def run_lldb_to_breakpoint(self, exe, source_file, line,
                                enable_command=None, settings_commands=None):
 
+        import pexpect
         # Set self.child_prompt, which is "(lldb) ".
         prompt = self.child_prompt