diff options
Diffstat (limited to 'lldb/test/API/python_api')
| -rw-r--r-- | lldb/test/API/python_api/file_handle/TestFileHandle.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/test/API/python_api/file_handle/TestFileHandle.py b/lldb/test/API/python_api/file_handle/TestFileHandle.py index 70720e3..eba758f 100644 --- a/lldb/test/API/python_api/file_handle/TestFileHandle.py +++ b/lldb/test/API/python_api/file_handle/TestFileHandle.py @@ -684,7 +684,13 @@ class FileHandleTestCase(lldbtest.TestBase): """Ensure when we read stdin from a file, outputs from python goes to the right I/O stream.""" with open(self.in_filename, "w") as f: f.write( - "script --language python --\nvalue = 250 + 5\nprint(value)\nprint(vel)" + """script --language python -- +import sys +variable = 250 + 5 +print(variable) +print("wrote to", "stderr", file=sys.stderr) +quit +""" ) with open(self.out_filename, "w") as outf, open( @@ -712,7 +718,7 @@ class FileHandleTestCase(lldbtest.TestBase): ) self.dbg.GetOutputFile().Flush() expected_out_text = "255" - expected_err_text = "NameError" + expected_err_text = "wrote to stderr" # check stdout with open(self.out_filename, "r") as f: out_text = f.read() |
