#9859: Doctest failures due to hard-coded line numbers in (doctests of)
sage/rings/*.pyx
-------------------------------------------------------------+--------------
Reporter: leif | Owner:
mvngu
Type: defect | Status:
new
Priority: trivial | Milestone:
sage-4.6
Component: doctest | Keywords:
DeprecationWarning failure integer.pyx rational.pyx beginner
Author: | Upstream:
N/A
Reviewer: | Merged:
Work_issues: Replace line numbers in doctests by ellipses. |
-------------------------------------------------------------+--------------
{{{
$ ./sage -t -long devel/sage/sage/rings/integer.pyx
sage -t -long "devel/sage/sage/rings/integer.pyx"
**********************************************************************
File "devel/sage/sage/rings/integer.pyx", line 4618:
sage: 5.sqrt_approx(prec=200)
Expected:
doctest:1172: DeprecationWarning: This function is deprecated. Use
sqrt with a given number of bits of precision instead.
2.2360679774997896964091736687312762354406183596115257242709
Got:
doctest:1176: DeprecationWarning: This function is deprecated. Use
sqrt with a given number of bits of precision instead.
2.2360679774997896964091736687312762354406183596115257242709
**********************************************************************
1 items had failures:
1 of 5 in __main__.example_118
***Test Failed*** 1 failures.
For whitespace errors, see the file
/home/leif/.sage//tmp/.doctest_integer.py
[16.4 s]
----------------------------------------------------------------------
The following tests failed:
sage -t -long "devel/sage/sage/rings/integer.pyx"
Total time for all tests: 16.4 seconds
$ ./sage -t -long devel/sage/sage/rings/rational.pyx
sage -t -long "devel/sage/sage/rings/rational.pyx"
**********************************************************************
File "devel/sage/sage/rings/rational.pyx", line 1339:
sage: (5/3).sqrt_approx()
Expected:
doctest:1172: DeprecationWarning: This function is deprecated. Use
sqrt with a given number of bits of precision instead.
1.29099444873581
Got:
doctest:1176: DeprecationWarning: This function is deprecated. Use
sqrt with a given number of bits of precision instead.
1.29099444873581
**********************************************************************
1 items had failures:
1 of 6 in __main__.example_31
***Test Failed*** 1 failures.
For whitespace errors, see the file
/home/leif/.sage//tmp/.doctest_rational.py
[4.5 s]
----------------------------------------------------------------------
The following tests failed:
sage -t -long "devel/sage/sage/rings/rational.pyx"
Total time for all tests: 4.6 seconds
}}}
These failures occurred just because some line numbers in
{{{$SAGE_LOCAL/bin/ncadoctest.py}}} changed (when I added some flush
statements).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9859>
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.