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

Method test_include_file_no_arg

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

Source from the content-addressed store, hash-verified

804 self.assertCompiled(f4)
805
806 def test_include_file_no_arg(self):
807 f1 = script_helper.make_script(self.pkgdir, 'f1', '')
808 f2 = script_helper.make_script(self.pkgdir, 'f2', '')
809 f3 = script_helper.make_script(self.pkgdir, 'f3', '')
810 f4 = script_helper.make_script(self.pkgdir, 'f4', '')
811 with open(os.path.join(self.directory, 'l1'), 'w', encoding="utf-8") as l1:
812 l1.write(os.path.join(self.pkgdir, 'f2.py')+os.linesep)
813 self.assertRunOK('-i', os.path.join(self.directory, 'l1'))
814 self.assertNotCompiled(f1)
815 self.assertCompiled(f2)
816 self.assertNotCompiled(f3)
817 self.assertNotCompiled(f4)
818
819 def test_include_on_stdin(self):
820 f1 = script_helper.make_script(self.pkgdir, 'f1', '')

Callers

nothing calls this directly

Calls 7

assertRunOKMethod · 0.95
assertNotCompiledMethod · 0.95
assertCompiledMethod · 0.95
openFunction · 0.50
make_scriptMethod · 0.45
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected