diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-06-24 13:28:08 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-06-24 13:28:08 -0400 |
commit | fcb17e13da46c75f76766f8536d5823563d10f1c (patch) | |
tree | 129cc22620d3e79ee8c91ce3bd402620349f08a2 /Lib/test | |
parent | e109c70860ceb4102a84c32d4bda4e5025eaf92a (diff) | |
parent | e697e3750f1273df0968193eea167c83a60f4c84 (diff) | |
download | cpython-git-fcb17e13da46c75f76766f8536d5823563d10f1c.tar.gz |
Merge #10206: add test for previously fixed bug.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_cmd_line.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index 57508c7530..9738691693 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -259,6 +259,13 @@ class CmdLineTest(unittest.TestCase): "print(repr(input()))", b"'abc'") + def test_unmached_quote(self): + # Issue #10206: python program starting with unmatched quote + # spewed spaces to stdout + rc, out, err = assert_python_failure('-c', "'") + self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError') + self.assertEqual(b'', out) + def test_main(): test.support.run_unittest(CmdLineTest) |