[Python-checkins] r68981 - python/branches/py3k/Lib/test/test_cmd_line.py

antoine.pitrou python-checkins at python.org
Mon Jan 26 23:00:21 CET 2009


Author: antoine.pitrou
Date: Mon Jan 26 23:00:21 2009
New Revision: 68981

Log:
Fix test so as to also pass in debug mode



Modified:
   python/branches/py3k/Lib/test/test_cmd_line.py

Modified: python/branches/py3k/Lib/test/test_cmd_line.py
==============================================================================
--- python/branches/py3k/Lib/test/test_cmd_line.py	(original)
+++ python/branches/py3k/Lib/test/test_cmd_line.py	Mon Jan 26 23:00:21 2009
@@ -167,7 +167,7 @@
         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():


More information about the Python-checkins mailing list