Skip to content

experimental warning messages are only raised once, ignoring warnings.simplefilter() #39811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
user202729 opened this issue Mar 28, 2025 · 1 comment · May be fixed by #39855
Open
2 tasks done

experimental warning messages are only raised once, ignoring warnings.simplefilter() #39811

user202729 opened this issue Mar 28, 2025 · 1 comment · May be fixed by #39855
Labels

Comments

@user202729
Copy link
Contributor

Steps To Reproduce

Currently an experimental warning sets the variable _already_issued which always raise it at most once per warning even with

            sage: import warnings
            sage: warnings.simplefilter("always")

This makes doctest fragile (whether warning is raised depends on doctest ordering, and we haven't mentioned pytest yet)

Seen in #39804

Expected Behavior

Actual Behavior

Additional Information

No response

Environment

  • OS: Linux
  • Sage Version: latest

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
@Krishnadubey1008 Krishnadubey1008 linked a pull request Apr 3, 2025 that will close this issue
5 tasks
@Krishnadubey1008
Copy link
Contributor

@user202729 please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants