(self)
| 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: |
| 316 | pkg_dir = os.path.join(script_dir, 'test_pkg') |
| 317 | make_pkg(pkg_dir) |
| 318 | script_name = _make_test_script(pkg_dir, 'script') |
| 319 | self._check_script(["-m", "test_pkg.script"], script_name, script_name, |
| 320 | script_dir, 'test_pkg', |
| 321 | importlib.machinery.SourceFileLoader, |
| 322 | cwd=script_dir) |
| 323 | |
| 324 | def test_module_in_package_in_zipfile(self): |
| 325 | with os_helper.temp_dir() as script_dir: |
nothing calls this directly
no test coverage detected