Merge #10206: add test for previously fixed bug.

This commit is contained in:
R David Murray 2011-06-24 13:28:08 -04:00
commit fcb17e13da
2 changed files with 8 additions and 0 deletions

View File

@ -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)

View File

@ -129,6 +129,7 @@ Gary S. Brown
Titus Brown
Oleg Broytmann
Dave Brueck
Francisco Martín Brugué
Stan Bubrouski
Erik de Bueger
Dick Bulterman