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

Method check_c_stack

Lib/test/test_faulthandler.py:964–972  ·  view source on GitHub ↗
(self, output)

Source from the content-addressed store, hash-verified

962 self.assertEqual(exitcode, 0)
963
964 def check_c_stack(self, output):
965 starting_line = output.pop(0)
966 self.assertRegex(starting_line, C_STACK_REGEX[0])
967 self.assertGreater(len(output), 0)
968
969 for line in output:
970 with self.subTest(line=line):
971 if line != '': # Ignore trailing or leading newlines
972 self.assertRegex(line, C_STACK_REGEX[1])
973
974
975 def test_dump_c_stack(self):

Callers 2

test_dump_c_stackMethod · 0.95

Calls 4

assertRegexMethod · 0.80
assertGreaterMethod · 0.80
popMethod · 0.45
subTestMethod · 0.45

Tested by

no test coverage detected