(self)
| 1010 | hardlink_dupes=dedup, force=force) |
| 1011 | |
| 1012 | def test_bad_args(self): |
| 1013 | # Bad arguments combination, hardlink deduplication make sense |
| 1014 | # only for more than one optimization level |
| 1015 | with self.temporary_directory(): |
| 1016 | self.make_script("pass") |
| 1017 | with self.assertRaises(ValueError): |
| 1018 | compileall.compile_dir(self.path, quiet=True, optimize=0, |
| 1019 | hardlink_dupes=True) |
| 1020 | with self.assertRaises(ValueError): |
| 1021 | # same optimization level specified twice: |
| 1022 | # compile_dir() removes duplicates |
| 1023 | compileall.compile_dir(self.path, quiet=True, optimize=[0, 0], |
| 1024 | hardlink_dupes=True) |
| 1025 | |
| 1026 | def create_code(self, docstring=False, assertion=False): |
| 1027 | lines = [] |
nothing calls this directly
no test coverage detected