-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Fix inherently failing random_expr doctest #24425
Comments
comment:1
The lazy_import is not even necessary for trigger. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: |
Author: Ralf Stephan |
New commits:
|
comment:6
I don't fully understand the context, but the change looks reasonable and really unlikely to break anything—and this ticket has been languishing for months. |
Reviewer: Marc Mezzarobba |
Changed branch from u/rws/fix_inherently_failing_random_expr_doctest to |
Changed commit from |
comment:8
Thanks. Oddly enough, #24212 depends on this. |
The docs for
random_expr
read:It has the following doctest:
Despite having a random seed the test run changes with every new builtin function introduced in
sage/functions
because the global function list changes. That's why the test was marked random. The problem however is that the test can even raise an error, as the docs state above. The"random
" keyword does not catch this, and it would make the test useless anyway.Tests are meant to test the functionality of the associated code so the test and perhaps
random_expr
should be rewritten such that it allows a test that does not change with a changed global function list.Component: symbolics
Author: Ralf Stephan
Branch:
a17755c
Reviewer: Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/24425
The text was updated successfully, but these errors were encountered: