Kaydet (Commit) c252c596 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

but verify_valid_flag() wasn't expecting that.  Will backport.
üst 43d6e812
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment