(self)
| 305 | zipimport.zipimporter) |
| 306 | |
| 307 | def test_zipfile_error(self): |
| 308 | with os_helper.temp_dir() as script_dir: |
| 309 | script_name = _make_test_script(script_dir, 'not_main') |
| 310 | zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name) |
| 311 | msg = "can't find '__main__' module in %r" % zip_name |
| 312 | self._check_import_error(zip_name, msg) |
| 313 | |
| 314 | def test_module_in_package(self): |
| 315 | with os_helper.temp_dir() as script_dir: |
nothing calls this directly
no test coverage detected