Commit 092d337e authored by R David Murray's avatar R David Murray

Merge #10206: add test for previously fixed bug.

parents cc1b4846 3aca2ee2
...@@ -259,6 +259,13 @@ class CmdLineTest(unittest.TestCase): ...@@ -259,6 +259,13 @@ class CmdLineTest(unittest.TestCase):
"print(repr(input()))", "print(repr(input()))",
b"'abc'") 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(): def test_main():
test.support.run_unittest(CmdLineTest) test.support.run_unittest(CmdLineTest)
......
...@@ -129,6 +129,7 @@ Gary S. Brown ...@@ -129,6 +129,7 @@ Gary S. Brown
Titus Brown Titus Brown
Oleg Broytmann Oleg Broytmann
Dave Brueck Dave Brueck
Francisco Martín Brugué
Stan Bubrouski Stan Bubrouski
Erik de Bueger Erik de Bueger
Dick Bulterman Dick Bulterman
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment