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

Method test_d_compile_error

Lib/test/test_compileall.py:768–771  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

766 self.assertCompiled(bar2fn)
767
768 def test_d_compile_error(self):
769 script_helper.make_script(self.pkgdir, 'crunchyfrog', 'bad(syntax')
770 rc, out, err = self.assertRunNotOK('-q', '-d', 'dinsdale', self.pkgdir)
771 self.assertRegex(out, b'File "dinsdale')
772
773 @support.force_not_colorized
774 def test_d_runtime_error(self):

Callers

nothing calls this directly

Calls 3

assertRunNotOKMethod · 0.95
assertRegexMethod · 0.80
make_scriptMethod · 0.45

Tested by

no test coverage detected