mirror of https://github.com/python/cpython
Mark untestable lines for gcov.
This commit is contained in:
parent
2e537f9edc
commit
a0547b8ac4
|
@ -4469,10 +4469,10 @@ _dec_hash(PyDecObject *v)
|
||||||
goto malloc_error;
|
goto malloc_error;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PyErr_SetString(PyExc_RuntimeError,
|
PyErr_SetString(PyExc_RuntimeError, /* GCOV_NOT_REACHED */
|
||||||
"dec_hash: internal error: please report");
|
"dec_hash: internal error: please report"); /* GCOV_NOT_REACHED */
|
||||||
}
|
}
|
||||||
result = -1;
|
result = -1; /* GCOV_NOT_REACHED */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -5623,7 +5623,7 @@ PyInit__decimal(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (base == NULL) {
|
if (base == NULL) {
|
||||||
goto error;
|
goto error; /* GCOV_NOT_REACHED */
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSIGN_PTR(cm->ex, PyErr_NewException((char *)cm->fqname, base, NULL));
|
ASSIGN_PTR(cm->ex, PyErr_NewException((char *)cm->fqname, base, NULL));
|
||||||
|
@ -5655,7 +5655,7 @@ PyInit__decimal(void)
|
||||||
base = PyTuple_Pack(1, signal_map[0].ex);
|
base = PyTuple_Pack(1, signal_map[0].ex);
|
||||||
}
|
}
|
||||||
if (base == NULL) {
|
if (base == NULL) {
|
||||||
goto error;
|
goto error; /* GCOV_NOT_REACHED */
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSIGN_PTR(cm->ex, PyErr_NewException((char *)cm->fqname, base, NULL));
|
ASSIGN_PTR(cm->ex, PyErr_NewException((char *)cm->fqname, base, NULL));
|
||||||
|
|
Loading…
Reference in New Issue