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

Method test_sys_attrs

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

Source from the content-addressed store, hash-verified

24 self.assertEqual(obj_type.__subclasses__(), [])
25
26 def test_sys_attrs(self):
27 for attr_name in (
28 'flags', # FlagsType
29 'float_info', # FloatInfoType
30 'hash_info', # Hash_InfoType
31 'int_info', # Int_InfoType
32 'thread_info', # ThreadInfoType
33 'version_info', # VersionInfoType
34 ):
35 with self.subTest(attr=attr_name):
36 attr = getattr(sys, attr_name)
37 self.check_structseq(type(attr))
38
39 def test_sys_funcs(self):
40 func_names = ['get_asyncgen_hooks'] # AsyncGenHooksType

Callers

nothing calls this directly

Calls 2

check_structseqMethod · 0.95
subTestMethod · 0.45

Tested by

no test coverage detected