summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-01-26 22:00:21 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2009-01-26 22:00:21 +0000
commit39df610571635d05b172aa84e683a837b1e74089 (patch)
treeda19fb34c02db0bdd72aa631e546ec4472bd226d
parenta5cafdf2ddca48882e6d927a90329ee638357a56 (diff)
downloadcpython-git-39df610571635d05b172aa84e683a837b1e74089.tar.gz
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 77bd6bb07e..84588cf5fb 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():