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

Method test_multiple_dirs

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

Source from the content-addressed store, hash-verified

753 self.assertCompiled(self.initfn)
754
755 def test_multiple_dirs(self):
756 pkgdir2 = os.path.join(self.directory, 'foo2')
757 os.mkdir(pkgdir2)
758 init2fn = script_helper.make_script(pkgdir2, '__init__', '')
759 bar2fn = script_helper.make_script(pkgdir2, 'bar2', '')
760 self.assertRunOK('-q', self.pkgdir, pkgdir2)
761 self.assertCompiled(self.initfn)
762 self.assertCompiled(self.barfn)
763 self.assertCompiled(init2fn)
764 self.assertCompiled(bar2fn)
765
766 def test_d_compile_error(self):
767 script_helper.make_script(self.pkgdir, 'crunchyfrog', 'bad(syntax')

Callers

nothing calls this directly

Calls 5

assertRunOKMethod · 0.95
assertCompiledMethod · 0.95
joinMethod · 0.45
mkdirMethod · 0.45
make_scriptMethod · 0.45

Tested by

no test coverage detected