mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue