Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #33170: Update doctests for compatibility with ipython 8.x
Besides trivial output format changes, the only breakage seems to be tracebacks no longer showing cython source code {{{ ********************************************************************** File "src/sage/repl/interpreter.py", line 77, in sage.repl.interpreter Failed example: print("dummy line"); shell.run_cell('1/0') # see #25320 for the reason of the `...` and the dummy line in this test Expected: dummy line ... ZeroDivisionError...Traceback (most recent call last) <ipython-input-...> in <module>... ----> 1 Integer(1)/Integer(0) .../sage/rings/integer.pyx in sage.rings.integer.Integer...div... ... -> ... raise ZeroDivisionError("rational division by zero") ... x = <Rational> Rational.__new__(Rational) ... mpq_div_zz(x.value, ....value, (<Integer>right).value) <BLANKLINE> ZeroDivisionError: rational division by zero Got: dummy line -------------------------------------------------------------------- ------- ZeroDivisionError Traceback (most recent call last) Input In [1], in <module> ----> 1 Integer(1)/Integer(0) <BLANKLINE> File /usr/lib/python3.10/site-packages/sage/rings/integer.pyx:1987, in sage.rings.integer.Integer.__truediv__ (build/cythonized/sage/rings/integer.c:13679)() <BLANKLINE> ZeroDivisionError: rational division by zero ********************************************************************** }}} The update itself requires a bunch of new dependencies URL: https://trac.sagemath.org/33170 Reported by: arojas Ticket author(s): Antonio Rojas Reviewer(s): Gonzalo Tornaría
- Loading branch information