MCPcopy Index your code
hub / github.com/python/cpython / py_ini

Method py_ini

Lib/test/test_launcher.py:266–274  ·  view source on GitHub ↗
(self, content)

Source from the content-addressed store, hash-verified

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"):

Callers 15

test_py_defaultMethod · 0.80
test_py2_defaultMethod · 0.80
test_py3_defaultMethod · 0.80
test_py_shebangMethod · 0.80
test_python_shebangMethod · 0.80
test_py2_shebangMethod · 0.80
test_py3_shebangMethod · 0.80
test_py_shebang_nlMethod · 0.80
test_py2_shebang_nlMethod · 0.80
test_py3_shebang_nlMethod · 0.80

Calls 3

PathClass · 0.90
PreservePyIniClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected