summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-01-26 22:00:21 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-01-26 22:00:21 (GMT)
commit39df610571635d05b172aa84e683a837b1e74089 (patch)
treeda19fb34c02db0bdd72aa631e546ec4472bd226d
parenta5cafdf2ddca48882e6d927a90329ee638357a56 (diff)
downloadcpython-39df610571635d05b172aa84e683a837b1e74089.zip
cpython-39df610571635d05b172aa84e683a837b1e74089.tar.gz
cpython-39df610571635d05b172aa84e683a837b1e74089.tar.bz2
Fix test so as to also pass in debug mode
-rw-r--r--Lib/test/test_cmd_line.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
index 77bd6bb..84588cf 100644
--- a/Lib/test/test_cmd_line.py
+++ b/Lib/test/test_cmd_line.py
@@ -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():