Skip to content

Conversation

@dcoudert
Copy link
Contributor

Add missing tag to fix doctest warning reported by some bots, for instance

 Check warning on line 750 in src/sage/rings/finite_rings/element_base.pyx
 
GitHub Actions / Conda (macos, Python 3.13, all)

Warning: Variable 'a' referenced here was set only in doctest marked '# needs sage.libs.linbox sage.rings.finite_rings'; '# needs sage.libs.ntl sage.rings.finite_rings'; '# needs sage.libs.pari sage.rings.finite_rings'
Variable 'a' referenced here was set only in doctest marked '# needs sage.libs.linbox sage.rings.finite_rings'; '# needs sage.libs.ntl sage.rings.finite_rings'; '# needs sage.libs.pari sage.rings.finite_rings'

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • 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

@github-actions
Copy link

Documentation preview for this PR (built with commit 03a75c5; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 31, 2026
sagemathgh-41561: fix doctest warning in `src/sage/rings/finite_rings/element_base.pyx`
    
Add missing tag to fix doctest warning reported by some bots, for
instance
```
 Check warning on line 750 in
src/sage/rings/finite_rings/element_base.pyx

GitHub Actions / Conda (macos, Python 3.13, all)

Warning: Variable 'a' referenced here was set only in doctest marked '#
needs sage.libs.linbox sage.rings.finite_rings'; '# needs sage.libs.ntl
sage.rings.finite_rings'; '# needs sage.libs.pari
sage.rings.finite_rings'
Variable 'a' referenced here was set only in doctest marked '# needs
sage.libs.linbox sage.rings.finite_rings'; '# needs sage.libs.ntl
sage.rings.finite_rings'; '# needs sage.libs.pari
sage.rings.finite_rings'
```


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [ ] 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#41561
Reported by: David Coudert
Reviewer(s):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants