Mark untestable lines for gcov.

This commit is contained in:
Stefan Krah 2013-05-29 19:08:34 +02:00
parent 2e537f9edc
commit a0547b8ac4
1 changed files with 5 additions and 5 deletions

View File

@ -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));