Skip to content

Commit

Permalink
sagemathgh-39282: Fix tests for Python 3.13
Browse files Browse the repository at this point in the history
    
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
  • Loading branch information
Release Manager committed Jan 6, 2025
2 parents 5739202 + 9a73e16 commit cc4208d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/repl/ipython_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)::
Expand Down

0 comments on commit cc4208d

Please sign in to comment.