From 9a73e16ad3cf8f1df9324e3f1551882840de94c1 Mon Sep 17 00:00:00 2001 From: user202729 <25191436+user202729@users.noreply.github.com> Date: Sun, 5 Jan 2025 10:29:36 +0700 Subject: [PATCH] Fix tests for Python 3.13 --- src/sage/repl/ipython_extension.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/repl/ipython_extension.py b/src/sage/repl/ipython_extension.py index 9f705d863b8..05468142142 100644 --- a/src/sage/repl/ipython_extension.py +++ b/src/sage/repl/ipython_extension.py @@ -433,8 +433,8 @@ def cython(self, line, cell): sage: shell.run_cell(''' ....: %%cython --view-annotate=xx ....: print(1) - ....: ''') - UsageError: argument --view-annotate: invalid choice: 'xx' (choose from 'none', 'auto', 'webbrowser', 'displayhtml') + ....: ''') # exact error message differ between Python 3.11/3.13 + UsageError: argument --view-annotate: invalid choice: 'xx' (choose from ...) Test ``--view-annotate=displayhtml`` (note that in a notebook environment an inline HTML frame will be displayed)::