From c252c5964c076071bfc20f8c4dfe70a79dba57aa Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 8 Oct 2005 20:04:35 +0000 Subject: [PATCH] Fix unit test failure -- the output received from Python can be empty, but verify_valid_flag() wasn't expecting that. Will backport. --- Lib/test/test_cmd_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index fc0c2d2c31b..a4a78f59763 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -17,7 +17,7 @@ class CmdLineTest(unittest.TestCase): def verify_valid_flag(self, cmd_line): data = self.start_python(cmd_line) - self.assertTrue(data.endswith('\n')) + self.assertTrue(data == '' or data.endswith('\n')) self.assertTrue('Traceback' not in data) def test_environment(self):