The restoring of sys.stdout should happen right after:

    self.runCmd("script my.date()")

In case the self.expect() fails, the restore would not be executed.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@124500 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed