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

Method test_dump_c_stack_file

Lib/test/test_faulthandler.py:985–992  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

983
984
985 def test_dump_c_stack_file(self):
986 import tempfile
987
988 with tempfile.TemporaryFile("w+") as tmp:
989 faulthandler.dump_c_stack(file=tmp)
990 tmp.flush() # Just in case
991 tmp.seek(0)
992 self.check_c_stack(tmp.read().split("\n"))
993
994if __name__ == "__main__":
995 unittest.main()

Callers

nothing calls this directly

Calls 5

check_c_stackMethod · 0.95
flushMethod · 0.45
seekMethod · 0.45
splitMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected