From f074b640f913dcf90756676409fc0df841960fb0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 11 Jul 2007 06:56:16 +0000 Subject: [PATCH] Fix test_cmd_line.py. Fix by Christian Heimes. --- Lib/test/test_cmd_line.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index d3f07c7f134..cb1bc9ff100 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -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]