(self)
| 254 | importlib.machinery.SourceFileLoader) |
| 255 | |
| 256 | def test_directory_compiled(self): |
| 257 | with os_helper.temp_dir() as script_dir: |
| 258 | script_name = _make_test_script(script_dir, '__main__') |
| 259 | pyc_file = import_helper.make_legacy_pyc(script_name, allow_compile=True) |
| 260 | os.remove(script_name) |
| 261 | self._check_script(script_dir, pyc_file, script_dir, |
| 262 | script_dir, '', |
| 263 | importlib.machinery.SourcelessFileLoader) |
| 264 | |
| 265 | def test_directory_error(self): |
| 266 | with os_helper.temp_dir() as script_dir: |
nothing calls this directly
no test coverage detected