mirror of https://github.com/python/cpython
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:
parent
43d6e812c8
commit
c252c5964c
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue