From: Guido van Rossum Date: Sat, 8 Oct 2005 20:04:35 +0000 (+0000) Subject: Fix unit test failure -- the output received from Python can be empty, X-Git-Tag: v2.5a0~1299 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c252c5964c076071bfc20f8c4dfe70a79dba57aa;p=thirdparty%2FPython%2Fcpython.git Fix unit test failure -- the output received from Python can be empty, but verify_valid_flag() wasn't expecting that. Will backport. --- diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index fc0c2d2c31b8..a4a78f59763d 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):