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

Method test_enable_fd

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

Source from the content-addressed store, hash-verified

337 "subprocess doesn't support pass_fds on Windows")
338 @skip_segfault_on_android
339 def test_enable_fd(self):
340 with tempfile.TemporaryFile('wb+') as fp:
341 fd = fp.fileno()
342 self.check_fatal_error("""
343 import faulthandler
344 import sys
345 faulthandler.enable(%s)
346 faulthandler._sigsegv()
347 """ % fd,
348 4,
349 'Segmentation fault',
350 fd=fd)
351
352 @skip_segfault_on_android
353 def test_enable_single_thread(self):

Callers

nothing calls this directly

Calls 2

check_fatal_errorMethod · 0.95
filenoMethod · 0.45

Tested by

no test coverage detected