Needed for the new doctester framework

See http://trac.sagemath.org/sage_trac/ticket/12415