Commit f074b640 authored by Guido van Rossum's avatar Guido van Rossum

Fix test_cmd_line.py. Fix by Christian Heimes.

parent 535a5ef1
......@@ -28,8 +28,8 @@ class CmdLineTest(unittest.TestCase):
def verify_valid_flag(self, cmd_line):
data = self.start_python(cmd_line)
self.assertTrue(data == '' or data.endswith('\n'))
self.assertTrue('Traceback' not in data)
self.assertTrue(data == b'' or data.endswith('\n'))
self.assertTrue(b'Traceback' not in data)
def test_environment(self):
self.verify_valid_flag('-E')
......@@ -48,7 +48,7 @@ class CmdLineTest(unittest.TestCase):
self.verify_valid_flag('-S')
def test_usage(self):
self.assertTrue('usage' in self.start_python('-h'))
self.assertTrue(b'usage' in self.start_python('-h'))
def test_version(self):
version = 'Python %d.%d' % sys.version_info[:2]
......
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