Skip to content

Commit 0999996

Browse files
committed
Don't expect what newlines look like - never works on Windows.
1 parent 1c43be0 commit 0999996

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/test/API/commands/command/backticks/TestBackticksInAlias.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def test_backticks_in_raw_cmd(self):
7676
interp = self.dbg.GetCommandInterpreter()
7777
interp.HandleCommand(f"script {argc_value} - `argc`", result)
7878
self.assertTrue(result.Succeeded(), "Command succeeded")
79-
self.assertEqual("0\n", result.GetOutput(), "Substitution worked")
79+
fixed_output = result.GetOutput().rstrip()
80+
self.assertEqual("0", fixed_output, "Substitution worked")
8081

8182

0 commit comments

Comments
 (0)