(self)
| 265 | importlib.machinery.SourceFileLoader) |
| 266 | |
| 267 | def test_directory_compiled(self): |
| 268 | with os_helper.temp_dir() as script_dir: |
| 269 | script_name = _make_test_script(script_dir, '__main__') |
| 270 | py_compile.compile(script_name, doraise=True) |
| 271 | os.remove(script_name) |
| 272 | pyc_file = import_helper.make_legacy_pyc(script_name) |
| 273 | self._check_script(script_dir, pyc_file, script_dir, |
| 274 | script_dir, '', |
| 275 | importlib.machinery.SourcelessFileLoader) |
| 276 | |
| 277 | def test_directory_error(self): |
| 278 | with os_helper.temp_dir() as script_dir: |
nothing calls this directly
no test coverage detected