[Lldb-commits] [lldb] r279234 - Fixing a Darwing test thats failing on windows

Dimitar Vlahovski via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 19 05:44:53 PDT 2016

Author: dvlahovski
Date: Fri Aug 19 07:44:53 2016
New Revision: 279234

URL: http://llvm.org/viewvc/llvm-project?rev=279234&view=rev
Fixing a Darwing test thats failing on windows

The pexpect import should be make after the skip-if-not-darwin part
because pexpect is not available on Windows


Modified: lldb/trunk/packages/Python/lldbsuite/test/darwin_log.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/darwin_log.py?rev=279234&r1=279233&r2=279234&view=diff
--- lldb/trunk/packages/Python/lldbsuite/test/darwin_log.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/darwin_log.py Fri Aug 19 07:44:53 2016
@@ -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.TestBas
     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

More information about the lldb-commits mailing list