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

Method setUpClass

Lib/test/test_launcher.py:302–311  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

300class TestLauncher(unittest.TestCase, RunPyMixin):
301 @classmethod
302 def setUpClass(cls):
303 with winreg.CreateKey(winreg.HKEY_CURRENT_USER, rf"Software\Python") as key:
304 create_registry_data(key, TEST_DATA)
305
306 if support.verbose:
307 p = subprocess.check_output("reg query HKCU\\Software\\Python /s")
308 #print(p.decode('mbcs'))
309
310 cls._ini_dir = tempfile.mkdtemp()
311 cls.addClassCleanup(shutil.rmtree, cls._ini_dir, ignore_errors=True)
312
313 @classmethod
314 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 4

create_registry_dataFunction · 0.85
mkdtempMethod · 0.80
addClassCleanupMethod · 0.80
check_outputMethod · 0.45

Tested by

no test coverage detected