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

Method test_sys_funcs

Lib/test/_test_embed_structseq.py:39–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 self.check_structseq(type(attr))
38
39 def test_sys_funcs(self):
40 func_names = ['get_asyncgen_hooks'] # AsyncGenHooksType
41 if hasattr(sys, 'getwindowsversion'):
42 func_names.append('getwindowsversion') # WindowsVersionType
43 for func_name in func_names:
44 with self.subTest(func=func_name):
45 func = getattr(sys, func_name)
46 obj = func()
47 self.check_structseq(type(obj))
48
49
50try:

Callers

nothing calls this directly

Calls 4

check_structseqMethod · 0.95
funcFunction · 0.70
appendMethod · 0.45
subTestMethod · 0.45

Tested by

no test coverage detected