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