mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
#10206: add test for previously fixed bug.
Patch by Francisco Martín Brugué.
This commit is contained in:
parent
24eb4bc5c9
commit
e697e3750f
2 changed files with 8 additions and 0 deletions
|
@ -265,6 +265,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)
|
||||||
|
|
|
@ -122,6 +122,7 @@ Jean Brouwers
|
||||||
Gary S. Brown
|
Gary S. 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue