#16181: inject_shorthands broken since 6.2beta8
-------------------------------------+-------------------------------------
Reporter: darij | Owner:
Type: defect | Status: needs_review
Priority: critical | Milestone: sage-6.2
Component: misc | Resolution:
Keywords: globals, | Merged in:
inject_shorthands, regression, | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | 6e0f42f336ad394f05040e379252c18c5785967a
public/combinat/inject_shorthands | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by darij):
A modification to the doctesting framework that does discriminate for this
bug being fixed has been made in branch
public/combinat/inject_shorthands_2 (not the default branch in this
ticket). Unfortunately it breaks several tests in
`src/sage/doctest/forker.py`. Most of them are straightforward to fix
(deleting a key that doesn't exist), but some are not:
{{{
**********************************************************************
File "src/sage/doctest/forker.py", line 1869, in
sage.doctest.forker.DocTestWorker.read_messages
Failed example:
len(W.messages) > 0
Expected:
True
Got:
False
**********************************************************************
File "src/sage/doctest/forker.py", line 1903, in
sage.doctest.forker.DocTestWorker.save_result_output
Failed example:
sorted(W.result[1].keys())
Expected:
['cputime', 'err', 'failures', 'optionals', 'walltime']
Got:
['err', 'tb']
**********************************************************************
File "src/sage/doctest/forker.py", line 1905, in
sage.doctest.forker.DocTestWorker.save_result_output
Failed example:
len(W.output) > 0
Expected:
True
Got:
False
**********************************************************************
File "src/sage/doctest/forker.py", line 1995, in
sage.doctest.forker.DocTestTask
Failed example:
ntests >= 300 or ntests
Expected:
True
Got:
0
**********************************************************************
File "src/sage/doctest/forker.py", line 1997, in
sage.doctest.forker.DocTestTask
Failed example:
sorted(results.keys())
Expected:
['cputime', 'err', 'failures', 'optionals', 'walltime']
Got:
['err', 'tb']
**********************************************************************
File "src/sage/doctest/forker.py", line 2057, in
sage.doctest.forker.DocTestTask.__call__
Failed example:
runner.failures
Exception raised:
Traceback (most recent call last):
File "/home/darij/gitsage6.2/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File "/home/darij/gitsage6.2/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest sage.doctest.forker.DocTestTask.__call__[11]>", line
1, in <module>
runner.failures
AttributeError: 'DictAsObject' object has no attribute 'failures'
**********************************************************************
File "src/sage/doctest/forker.py", line 2059, in
sage.doctest.forker.DocTestTask.__call__
Failed example:
ntests >= 200 or ntests
Expected:
True
Got:
0
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16181#comment:13>
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.