]> granicus.if.org Git - python/commitdiff
Fix test so as to also pass in debug mode
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 26 Jan 2009 22:00:21 +0000 (22:00 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 26 Jan 2009 22:00:21 +0000 (22:00 +0000)
Lib/test/test_cmd_line.py

index 77bd6bb07ed375e8177c653455b34b5bc8636d52..84588cf5fbf6a6a866ee53662d6e394eb78b87de 100644 (file)
@@ -167,7 +167,7 @@ class CmdLineTest(unittest.TestCase):
         p.stdin.flush()
         data, rc = _kill_python_and_exit_code(p)
         self.assertEqual(rc, 0)
-        self.assertEqual(data.strip(), b'x')
+        self.assert_(data.startswith(b'x'), data)
 
 
 def test_main():