diff options
author | Guido van Rossum <guido@python.org> | 2007-07-11 06:56:16 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-07-11 06:56:16 (GMT) |
commit | f074b640f913dcf90756676409fc0df841960fb0 (patch) | |
tree | 64f6929c7f68b205eee531469fa97be4edc3a9aa | |
parent | 535a5ef196ff60141a1ecea732f55fbd72f8d9d7 (diff) | |
download | cpython-f074b640f913dcf90756676409fc0df841960fb0.zip cpython-f074b640f913dcf90756676409fc0df841960fb0.tar.gz cpython-f074b640f913dcf90756676409fc0df841960fb0.tar.bz2 |
Fix test_cmd_line.py. Fix by Christian Heimes.
-rw-r--r-- | Lib/test/test_cmd_line.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index d3f07c7..cb1bc9ff 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] |