(self)
| 349 | PYTHONPATH=zip_name, cwd=script_dir) |
| 350 | |
| 351 | def test_package(self): |
| 352 | with os_helper.temp_dir() as script_dir: |
| 353 | pkg_dir = os.path.join(script_dir, 'test_pkg') |
| 354 | make_pkg(pkg_dir) |
| 355 | script_name = _make_test_script(pkg_dir, '__main__') |
| 356 | self._check_script(["-m", "test_pkg"], script_name, |
| 357 | script_name, script_dir, 'test_pkg', |
| 358 | importlib.machinery.SourceFileLoader, |
| 359 | cwd=script_dir) |
| 360 | |
| 361 | def test_package_compiled(self): |
| 362 | with os_helper.temp_dir() as script_dir: |
nothing calls this directly
no test coverage detected