Skip to content

Commit 1fb1ad9

Browse files
author
Release Manager
committed
sagemathgh-39282: Fix tests for Python 3.13 Fixes issue pointed out in sagemath#38946 (comment) ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#39282 Reported by: user202729 Reviewer(s): Frédéric Chapoton
2 parents 601fea9 + 9a73e16 commit 1fb1ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/repl/ipython_extension.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ def cython(self, line, cell):
433433
sage: shell.run_cell('''
434434
....: %%cython --view-annotate=xx
435435
....: print(1)
436-
....: ''')
437-
UsageError: argument --view-annotate: invalid choice: 'xx' (choose from 'none', 'auto', 'webbrowser', 'displayhtml')
436+
....: ''') # exact error message differ between Python 3.11/3.13
437+
UsageError: argument --view-annotate: invalid choice: 'xx' (choose from ...)
438438
439439
Test ``--view-annotate=displayhtml`` (note that in a notebook environment
440440
an inline HTML frame will be displayed)::

0 commit comments

Comments
 (0)