This "feature" that I introduced years ago is incredibly confusing. 3 people at least got very confused by this in the last 3-4 days.
To close this ticket:
-
remove this functionality from local/bin/sage-test
-
rewrite all the files that use this by tediously marking each optional line with #optional. This is tedious, but it is much much clearer what is going on.
Note -- only do this after apply #4583, which already does some of part 2 above.
Component: doctest coverage
Issue created by migration from https://trac.sagemath.org/ticket/4588