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

Method test_no_args_compiles_path

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

Source from the content-addressed store, hash-verified

581 self.assertFalse(os.path.exists(path))
582
583 def test_no_args_compiles_path(self):
584 # Note that -l is implied for the no args case.
585 bazfn = script_helper.make_script(self.directory, 'baz', '')
586 with self.temporary_pycache_prefix() as env:
587 self.assertRunOK(**env)
588 self.assertCompiled(bazfn)
589 self.assertNotCompiled(self.initfn)
590 self.assertNotCompiled(self.barfn)
591
592 @without_source_date_epoch # timestamp invalidation test
593 @support.requires_resource('cpu')

Callers

nothing calls this directly

Calls 5

assertRunOKMethod · 0.95
assertCompiledMethod · 0.95
assertNotCompiledMethod · 0.95
make_scriptMethod · 0.45

Tested by

no test coverage detected