(self)
| 238 | importlib.machinery.SourceFileLoader) |
| 239 | |
| 240 | def test_script_compiled(self): |
| 241 | with os_helper.temp_dir() as script_dir: |
| 242 | script_name = _make_test_script(script_dir, 'script') |
| 243 | pyc_file = import_helper.make_legacy_pyc(script_name, allow_compile=True) |
| 244 | os.remove(script_name) |
| 245 | self._check_script(pyc_file, pyc_file, |
| 246 | pyc_file, script_dir, None, |
| 247 | importlib.machinery.SourcelessFileLoader) |
| 248 | |
| 249 | def test_directory(self): |
| 250 | with os_helper.temp_dir() as script_dir: |
nothing calls this directly
no test coverage detected