#12415: Update doctesting framework
-------------------------------------------------------------------------------------------------------------------------------------------------+
Reporter: robertwb
|
Owner: mvngu
Type: enhancement
|
Status: needs_work
Priority: major
|
Milestone: sage-5.4
Component: doctest
|
Resolution:
Keywords:
| Work
issues: interrupt.pyx failure
Report Upstream: N/A
|
Reviewers: Jeroen Demeyer
Authors: David Roe, Robert Bradshaw
| Merged
in:
Dependencies: #13147,#13146, #13145, #12723, #12392, #12393, #12395,
#12396, #12397, #12381, #12382, #12383, #12384, #11871, #13195, #13121 |
Stopgaps:
-------------------------------------------------------------------------------------------------------------------------------------------------+
Comment (by jhpalmieri):
I have no idea what's going on, but to follow up on David's comment: on an
OS X 10.8 machine, if I run `sage -t rings/big_oh.py tests/interrupt.pyx`,
I get an error at line 744. If I make ''either'' of the following two
changes, the error goes away:
{{{
#!diff
diff --git a/sage/tests/interrupt.pyx b/sage/tests/interrupt.pyx
--- a/sage/tests/interrupt.pyx
+++ b/sage/tests/interrupt.pyx
@@ -691,8 +691,6 @@ def test_sig_block(long delay = DEFAULT_
TESTS::
sage: from sage.tests.interrupt import *
- sage: test_sig_block()
- 42
"""
cdef volatile_int v = 0
}}}
or
{{{
#!diff
diff --git a/sage/tests/interrupt.pyx b/sage/tests/interrupt.pyx
--- a/sage/tests/interrupt.pyx
+++ b/sage/tests/interrupt.pyx
@@ -741,9 +741,6 @@ def test_signal_during_malloc(long delay
TESTS::
- sage: from sage.tests.interrupt import *
- sage: for i in range(4): # Several times to reduce chances of
false positive
- ... test_signal_during_malloc()
"""
signal_after_delay(SIGINT, delay)
try:
}}}
For the second one, I still get the error if I keep line 744,
{{{
sage: from sage.tests.interrupt import *
}}}
but remove the actual doctest. Does this have any significance for anyone?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12415#comment:126>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.