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

Method make_archive

Lib/test/test_zipapp.py:390–397  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

388 self.tmpdir = pathlib.Path(tmpdir.name)
389
390 def make_archive(self):
391 # Test that an archive with no shebang line is not made executable.
392 source = self.tmpdir / 'source'
393 source.mkdir()
394 (source / '__main__.py').touch()
395 target = self.tmpdir / 'source.pyz'
396 zipapp.create_archive(source, target)
397 return target
398
399 def test_cmdline_create(self):
400 # Test the basic command line API.

Callers 6

test_cmdline_copyMethod · 0.95
test_info_commandMethod · 0.95
packageFunction · 0.80
packageFunction · 0.80

Calls 2

mkdirMethod · 0.45
touchMethod · 0.45

Tested by

no test coverage detected