summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cmd_line.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2005-10-08 20:04:35 (GMT)
committerGuido van Rossum <guido@python.org>2005-10-08 20:04:35 (GMT)
commitc252c5964c076071bfc20f8c4dfe70a79dba57aa (patch)
treefc120e0d313be1964988fdb46b0eb0de87976988 /Lib/test/test_cmd_line.py
parent43d6e812c886db6f4eae19598b0b864e9cbc3d52 (diff)
downloadcpython-c252c5964c076071bfc20f8c4dfe70a79dba57aa.zip
cpython-c252c5964c076071bfc20f8c4dfe70a79dba57aa.tar.gz
cpython-c252c5964c076071bfc20f8c4dfe70a79dba57aa.tar.bz2
Fix unit test failure -- the output received from Python can be empty,
but verify_valid_flag() wasn't expecting that. Will backport.
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-rw-r--r--Lib/test/test_cmd_line.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
index fc0c2d2..a4a78f5 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):