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

Function raise_error

Modules/_decimal/tests/deccheck.py:617–646  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

615 return err
616
617def raise_error(t):
618 global EXIT_STATUS
619
620 if skip_error(t):
621 return
622 EXIT_STATUS = 1
623
624 err = "Error in %s:\n\n" % t.funcname
625 err += "input operands: %s\n\n" % (t.op,)
626 err += function_as_string(t)
627
628 err += "\n\nc_result: %s\np_result: %s\n" % (t.cresults, t.presults)
629 if t.with_maxcontext:
630 err += "max_result: %s\n\n" % (t.maxresults)
631 else:
632 err += "\n"
633
634 err += "c_exceptions: %s\np_exceptions: %s\n" % (t.cex, t.pex)
635 if t.with_maxcontext:
636 err += "max_exceptions: %s\n\n" % t.maxex
637 else:
638 err += "\n"
639
640 err += "%s\n" % str(t.context)
641 if t.with_maxcontext:
642 err += "%s\n" % str(t.maxcontext)
643 else:
644 err += "\n"
645
646 raise VerifyError(err)
647
648
649# ======================================================================

Callers 5

test_flags_irrelevantMethod · 0.85
innerMethod · 0.85
runMethod · 0.85
convertFunction · 0.85
verifyFunction · 0.85

Calls 4

skip_errorFunction · 0.85
function_as_stringFunction · 0.85
strFunction · 0.85
VerifyErrorClass · 0.85

Tested by 3

test_flags_irrelevantMethod · 0.68
innerMethod · 0.68
runMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…