(self, content)
| 264 | return data |
| 265 | |
| 266 | def py_ini(self, content): |
| 267 | ini_dir = getattr(self, '_ini_dir', None) |
| 268 | if not ini_dir: |
| 269 | local_appdata = os.environ.get("LOCALAPPDATA") |
| 270 | if not local_appdata: |
| 271 | raise unittest.SkipTest("LOCALAPPDATA environment variable is " |
| 272 | "missing or empty") |
| 273 | ini_dir = local_appdata |
| 274 | return PreservePyIni(Path(ini_dir) / "py.ini", content) |
| 275 | |
| 276 | @contextlib.contextmanager |
| 277 | def script(self, content, encoding="utf-8"): |
no test coverage detected