mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix unit test failure -- the output received from Python can be empty,
but verify_valid_flag() wasn't expecting that. (Backport.)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user