(self)
| 317 | zipimport.zipimporter) |
| 318 | |
| 319 | def test_zipfile_error(self): |
| 320 | with os_helper.temp_dir() as script_dir: |
| 321 | script_name = _make_test_script(script_dir, 'not_main') |
| 322 | zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name) |
| 323 | msg = "can't find '__main__' module in %r" % zip_name |
| 324 | self._check_import_error(zip_name, msg) |
| 325 | |
| 326 | def test_module_in_package(self): |
| 327 | with os_helper.temp_dir() as script_dir: |
nothing calls this directly
no test coverage detected