#20601: Issue @experimental warnings only once
-------------------------------------+-------------------------------------
Reporter: jsrn | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-7.3
Component: misc | Resolution:
Keywords: warnings, | Merged in:
experimental | Reviewers:
Authors: Johan S. R. | Work issues:
Nielsen | Commit:
Report Upstream: N/A | f967f59b5e9bb76aa6dd96fda7c578f7a64808d0
Branch: | Stopgaps:
u/jsrn/20601_experimental |
Dependencies: |
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Johan S. R. Nielsen', 'oldvalue': ''}):
* status: new => needs_review
* author: => Johan S. R. Nielsen
Comment:
I've implemented a flag so `@experimental` knows whether it has already
issued a warning or not. The flag works as expected in the terminal.
However, during doc-testing I get strange behaviour: I wanted to add a
test to demonstrate that an error message is now only issued on the first
call. However, the test passes even without the patch! This is in stark
contrast to the behaviour in the terminal, where the message (copy-paste
the code from the doc-tested) is definitely issued every time. There is
some magic in either Sphinx or the terminal interface that I'm not
understanding here.
(more data is that #20526, commit 0ab93ec currently has all doc-tests
failing due to experimental warnings being issued, but with this patch,
all the tests pass)
--
Ticket URL: <http://trac.sagemath.org/ticket/20601#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.