Call abort() instead of exit()

Issue #9 new
Jeroen Demeyer created an issue

In Sage, it's annoying to get a doctest failure like this

sage -t --long --warn-long 92.8 src/sage/homology/simplicial_complex.py
    Bad exit: 2
**********************************************************************
Tests run before process (pid=88791) failed:
sage: SimplicialComplex([[1], [3, 7]]) ## line 76 ##
[...]
sage: SimplicialComplex([[]]).connected_component() ## line 3119 ##
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 3123 ##
0
sage: S1 = simplicial_complexes.Sphere(1) ## line 3162 ##
sage: S1.fundamental_group() ## line 3163 ##

**********************************************************************

This is because (lib)GAP has many calls to (libGAP_)SyExit to signal errors. It would be more useful to call abort() such that we can get a traceback in case of errors.

Comments (0)

  1. Log in to comment