MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_unmached_quote

Method test_unmached_quote

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

Source from the content-addressed store, hash-verified

469 self.assertEqual(b'3\n4\n', err)
470
471 def test_unmached_quote(self):
472 # Issue #10206: python program starting with unmatched quote
473 # spewed spaces to stdout
474 rc, out, err = assert_python_failure('-c', "'")
475 self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError')
476 self.assertEqual(b'', out)
477
478 def test_stdout_flush_at_shutdown(self):
479 # Issue #5319: if stdout.flush() fails at shutdown, an error should

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