Fix wrong order of "import lldbutil" statement and its usage in the failure case.
llvm-svn: 124196
diff --git a/lldb/test/threads/TestPrintStackTraces.py b/lldb/test/threads/TestPrintStackTraces.py
index 4dbea69..ec551ff 100644
--- a/lldb/test/threads/TestPrintStackTraces.py
+++ b/lldb/test/threads/TestPrintStackTraces.py
@@ -40,12 +40,12 @@
if not rc.Success() or not self.process.IsValid():
self.fail("SBTarget.LaunchProcess() failed")
+ import lldbutil
if self.process.GetState() != lldb.eStateStopped:
self.fail("Process should be in the 'stopped' state, "
"instead the actual state is: '%s'" %
lldbutil.StateTypeString(self.process.GetState()))
- import lldbutil
lldbutil.PrintStackTraces(self.process)