Merge #10206: add test for previously fixed bug.
This commit is contained in:
commit
fcb17e13da
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue