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

Method test_recursion_control

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

Source from the content-addressed store, hash-verified

677 self.assertNotEqual(mtime, mtime2)
678
679 def test_recursion_control(self):
680 subpackage = os.path.join(self.pkgdir, 'spam')
681 os.mkdir(subpackage)
682 subinitfn = script_helper.make_script(subpackage, '__init__', '')
683 hamfn = script_helper.make_script(subpackage, 'ham', '')
684 self.assertRunOK('-q', '-l', self.pkgdir)
685 self.assertNotCompiled(subinitfn)
686 self.assertFalse(os.path.exists(os.path.join(subpackage, '__pycache__')))
687 self.assertRunOK('-q', self.pkgdir)
688 self.assertCompiled(subinitfn)
689 self.assertCompiled(hamfn)
690
691 def test_recursion_limit(self):
692 subpackage = os.path.join(self.pkgdir, 'spam')

Callers

nothing calls this directly

Calls 8

assertRunOKMethod · 0.95
assertNotCompiledMethod · 0.95
assertCompiledMethod · 0.95
assertFalseMethod · 0.80
joinMethod · 0.45
mkdirMethod · 0.45
make_scriptMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected