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

Method test_include_bad_file

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

Source from the content-addressed store, hash-verified

782 self.assertRegex(err, b'File "dinsdale')
783
784 def test_include_bad_file(self):
785 rc, out, err = self.assertRunNotOK(
786 '-i', os.path.join(self.directory, 'nosuchfile'), self.pkgdir)
787 self.assertRegex(out, b'rror.*nosuchfile')
788 self.assertNotRegex(err, b'Traceback')
789 self.assertFalse(os.path.exists(importlib.util.cache_from_source(
790 self.pkgdir_cachedir)))
791
792 def test_include_file_with_arg(self):
793 f1 = script_helper.make_script(self.pkgdir, 'f1', '')

Callers

nothing calls this directly

Calls 6

assertRunNotOKMethod · 0.95
assertRegexMethod · 0.80
assertNotRegexMethod · 0.80
assertFalseMethod · 0.80
joinMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected