MCPcopy Index your code
hub / github.com/RustPython/RustPython / check_c_stack

Method check_c_stack

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

Source from the content-addressed store, hash-verified

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

Callers 2

test_dump_c_stackMethod · 0.95

Calls 5

lenFunction · 0.85
assertRegexMethod · 0.80
assertGreaterMethod · 0.80
subTestMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected