From: R David Murray Date: Fri, 24 Jun 2011 17:26:31 +0000 (-0400) Subject: #10206: add test for previously fixed bug. X-Git-Tag: v3.2.1rc2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e697e3750f1273df0968193eea167c83a60f4c84;p=thirdparty%2FPython%2Fcpython.git #10206: add test for previously fixed bug. Patch by Francisco Martín Brugué. --- diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index c4e3adfb534d..56a8e3965906 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -265,6 +265,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) diff --git a/Misc/ACKS b/Misc/ACKS index d578c483f136..06853b9535c2 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -122,6 +122,7 @@ Jean Brouwers Gary S. Brown Oleg Broytmann Dave Brueck +Francisco Martín Brugué Stan Bubrouski Erik de Bueger Dick Bulterman