From: Guido van Rossum Date: Sat, 8 Oct 2005 20:04:55 +0000 (+0000) Subject: Fix unit test failure -- the output received from Python can be empty, X-Git-Tag: v2.4.3c1~246 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b54ee3ddf8e67a2fe7f117db4fa4e119fbb28d6b;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. (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):