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

Method test_multiple_dirs

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

Source from the content-addressed store, hash-verified

755 self.assertCompiled(self.initfn)
756
757 def test_multiple_dirs(self):
758 pkgdir2 = os.path.join(self.directory, 'foo2')
759 os.mkdir(pkgdir2)
760 init2fn = script_helper.make_script(pkgdir2, '__init__', '')
761 bar2fn = script_helper.make_script(pkgdir2, 'bar2', '')
762 self.assertRunOK('-q', self.pkgdir, pkgdir2)
763 self.assertCompiled(self.initfn)
764 self.assertCompiled(self.barfn)
765 self.assertCompiled(init2fn)
766 self.assertCompiled(bar2fn)
767
768 def test_d_compile_error(self):
769 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