Fix unit test failure -- the output received from Python can be empty,

but verify_valid_flag() wasn't expecting that.  Will backport.
This commit is contained in:
Guido van Rossum 2005-10-08 20:04:35 +00:00
parent 43d6e812c8
commit c252c5964c
1 changed files with 1 additions and 1 deletions

View File

@ -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):