(self)
| 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. |
no test coverage detected