#16109: Timing instability in doctest reporter
-------------------------------------+------------------------
Reporter: vbraun | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.2
Component: doctest framework | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-------------------------------------+------------------------
Changes (by {'newvalue': u'Volker Braun', 'oldvalue': ''}):
* component: PLEASE CHANGE => doctest framework
* type: PLEASE CHANGE => defect
* author: => Volker Braun
Old description:
New description:
Random doctest failure on the buildbot:
{{{
sage -t --long src/sage/doctest/reporting.py
**********************************************************************
File "src/sage/doctest/reporting.py", line 265, in
sage.doctest.reporting.DocTestReporter.report
Failed example:
DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]),
D), "Good tests")
Expected:
[... tests, 0.00 s]
Got:
[103 tests, 0.01 s]
**********************************************************************
File "src/sage/doctest/reporting.py", line 275, in
sage.doctest.reporting.DocTestReporter.report
Failed example:
DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]),
D), "Doctest output including the failure...")
Expected:
[... tests, 1 failure, 0.00 s]
Got:
[103 tests, 1 failure, 0.01 s]
**********************************************************************
File "src/sage/doctest/reporting.py", line 289, in
sage.doctest.reporting.DocTestReporter.report
Failed example:
DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]),
D), "Good tests")
Expected:
1 unlabeled test not run
4 long tests not run
5 magma tests not run
2 other tests skipped
[... tests, 0.00 s]
Got:
1 unlabeled test not run
4 long tests not run
5 magma tests not run
2 other tests skipped
[103 tests, 0.01 s]
**********************************************************************
}}}
obviously we shouldn't doctest that the time is really 0.00s
--
--
Ticket URL: <http://trac.sagemath.org/ticket/16109#comment:1>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.