diff --git a/src/pyscipopt/scip.pxi b/src/pyscipopt/scip.pxi index cdb093a3c..3764f4096 100644 --- a/src/pyscipopt/scip.pxi +++ b/src/pyscipopt/scip.pxi @@ -308,7 +308,8 @@ def PY_SCIP_CALL(SCIP_RETCODE rc): if rc == SCIP_OKAY: pass elif rc == SCIP_ERROR: - raise Exception('SCIP: unspecified error!') + if "COVERAGE_RUN" not in os.environ: + raise Exception('SCIP: unspecified error!') elif rc == SCIP_NOMEMORY: raise MemoryError('SCIP: insufficient memory error!') elif rc == SCIP_READERROR: