(self, tar_name)
| 2833 | return script_helper.assert_python_failure('-m', 'tarfile', *args) |
| 2834 | |
| 2835 | def make_simple_tarfile(self, tar_name): |
| 2836 | files = [support.findfile('tokenize_tests.txt', |
| 2837 | subdir='tokenizedata'), |
| 2838 | support.findfile('tokenize_tests-no-coding-cookie-' |
| 2839 | 'and-utf8-bom-sig-only.txt', |
| 2840 | subdir='tokenizedata')] |
| 2841 | self.addCleanup(os_helper.unlink, tar_name) |
| 2842 | with tarfile.open(tar_name, 'w') as tf: |
| 2843 | for tardata in files: |
| 2844 | tf.add(tardata, arcname=os.path.basename(tardata)) |
| 2845 | |
| 2846 | def make_evil_tarfile(self, tar_name): |
| 2847 | self.addCleanup(os_helper.unlink, tar_name) |
no test coverage detected