summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2013-05-29 17:08:34 (GMT)
committerStefan Krah <skrah@bytereef.org>2013-05-29 17:08:34 (GMT)
commita0547b8ac4196b0a204f882499cc7f913f5ad759 (patch)
tree900356d217437723fc5837d5f3ad8deeca998d12 /Modules
parent2e537f9edcf8ed3bd2418b08957c990d90b0c720 (diff)
downloadcpython-a0547b8ac4196b0a204f882499cc7f913f5ad759.zip
cpython-a0547b8ac4196b0a204f882499cc7f913f5ad759.tar.gz
cpython-a0547b8ac4196b0a204f882499cc7f913f5ad759.tar.bz2
Mark untestable lines for gcov.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_decimal/_decimal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
index 98d49e6..d3e3940 100644
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -4469,10 +4469,10 @@ _dec_hash(PyDecObject *v)
goto malloc_error;
}
else {
- PyErr_SetString(PyExc_RuntimeError,
- "dec_hash: internal error: please report");
+ PyErr_SetString(PyExc_RuntimeError, /* GCOV_NOT_REACHED */
+ "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) {
- goto error;
+ goto error; /* GCOV_NOT_REACHED */
}
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);
}
if (base == NULL) {
- goto error;
+ goto error; /* GCOV_NOT_REACHED */
}
ASSIGN_PTR(cm->ex, PyErr_NewException((char *)cm->fqname, base, NULL));