MCPcopy Index your code
hub / github.com/python/cpython / test_unmached_quote

Method test_unmached_quote

Lib/test/test_cmd_line.py:504–509  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

502 self.assertEqual(b'3\n4\n', err)
503
504 def test_unmached_quote(self):
505 # Issue #10206: python program starting with unmatched quote
506 # spewed spaces to stdout
507 rc, out, err = assert_python_failure('-c', "'")
508 self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError')
509 self.assertEqual(b'', out)
510
511 @force_not_colorized
512 def test_stdout_flush_at_shutdown(self):

Callers

nothing calls this directly

Calls 4

assert_python_failureFunction · 0.90
assertRegexMethod · 0.80
decodeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected