summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/lldbtest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py
index 3c626fdefa9..ed11ef80350 100644
--- a/lldb/test/lldbtest.py
+++ b/lldb/test/lldbtest.py
@@ -1014,12 +1014,12 @@ class Base(unittest2.TestCase):
self.child.sendline('settings set interpreter.prompt-on-quit false')
self.child.sendline('quit')
self.child.expect(pexpect.EOF)
- except ValueError, ExceptionPexpect:
+ except (ValueError, pexpect.ExceptionPexpect):
# child is already terminated
pass
-
- # Give it one final blow to make sure the child is terminated.
- self.child.close()
+ finally:
+ # Give it one final blow to make sure the child is terminated.
+ self.child.close()
def tearDown(self):
OpenPOWER on IntegriCloud