#16746: Use the Sage displayhook in doctests
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: defect | Status: needs_work
Priority: blocker | Milestone: sage-6.4
Component: doctest framework | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/sort_dicts_in_doctests | b579b925651aae99d40731436be2300f11238265
Dependencies: #16992 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by cheuberg):
{{{make ptestlong}}} on my linux mint 64 bit desktop gave a few failing
doctests, mostly because sorting of integers and strings is more or less
random.
{{{
sage -t --long src/doc/de/tutorial/programming.rst
**********************************************************************
File "src/doc/de/tutorial/programming.rst", line 503, in
doc.de.tutorial.programming
Failed example:
X
Expected:
{1, 19, 'a'}
Got:
{'a', 1, 19}
**********************************************************************
1 item had failures:
1 of 143 in doc.de.tutorial.programming
[113 tests, 1 failure, 1.61 s]
sage -t --long src/doc/en/tutorial/programming.rst
**********************************************************************
File "src/doc/en/tutorial/programming.rst", line 485, in
doc.en.tutorial.programming
Failed example:
X
Expected:
{1, 19, 'a'}
Got:
{'a', 1, 19}
**********************************************************************
1 item had failures:
1 of 144 in doc.en.tutorial.programming
[114 tests, 1 failure, 0.17 s]
sage -t --long src/doc/en/thematic_tutorials/tutorial-programming-
python.rst
**********************************************************************
File "src/doc/en/thematic_tutorials/tutorial-programming-python.rst", line
707, in doc.en.thematic_tutorials.tutorial-programming-python
Failed example:
d
Expected:
{3/2: 17, 3: 17, 'key': [4, 1, 5, 2, 3], (3, 1, 2): 'goo'}
Got:
{'key': [4, 1, 5, 2, 3], (3, 1, 2): 'goo', 3/2: 17, 3: 17}
**********************************************************************
File "src/doc/en/thematic_tutorials/tutorial-programming-python.rst", line
734, in doc.en.thematic_tutorials.tutorial-programming-python
Failed example:
d
Expected:
{3/2: 17, 3: 17, 10: 'a', 'key': [4, 1, 5, 2, 3], (3, 1, 2): 'goo'}
Got:
{'key': [4, 1, 5, 2, 3], (3, 1, 2): 'goo', 3/2: 17, 3: 17, 10: 'a'}
**********************************************************************
File "src/doc/en/thematic_tutorials/tutorial-programming-python.rst", line
767, in doc.en.thematic_tutorials.tutorial-programming-python
Failed example:
d
Expected:
{3: 14, 10: 'newvalue', 20: 'newervalue', 'a': [1, 2, 3]}
Got:
{'a': [1, 2, 3], 3: 14, 10: 'newvalue', 20: 'newervalue'}
**********************************************************************
1 item had failures:
3 of 159 in doc.en.thematic_tutorials.tutorial-programming-python
[158 tests, 3 failures, 0.16 s]
sage -t --long src/doc/fr/tutorial/programming.rst
**********************************************************************
File "src/doc/fr/tutorial/programming.rst", line 501, in
doc.fr.tutorial.programming
Failed example:
X
Expected:
{1, 19, 'a'}
Got:
{'a', 1, 19}
**********************************************************************
1 item had failures:
1 of 143 in doc.fr.tutorial.programming
[113 tests, 1 failure, 0.17 s]
sage -t --long src/doc/ru/tutorial/programming.rst
**********************************************************************
File "src/doc/ru/tutorial/programming.rst", line 469, in
doc.ru.tutorial.programming
Failed example:
X
Expected:
{1, 19, 'a'}
Got:
{'a', 1, 19}
**********************************************************************
1 item had failures:
1 of 143 in doc.ru.tutorial.programming
[113 tests, 1 failure, 0.17 s]
sage -t --long local/lib/python2.7/site-
packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/worksheet.py
**********************************************************************
File "local/lib/python2.7/site-
packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/worksheet.py", line
4063, in sagenb.notebook.worksheet.Worksheet.delete_all_output
Failed example:
W.cell_list()
Expected:
[Cell 0: in=2+3, out=
5, Cell 1: in=open('afile', 'w').write('some text')
print 'hello', out=
]
Got:
[Cell 0: in=2+3, out=
5, Cell 1: in=open('afile', 'w').write('some text')
print 'hello', out=]
**********************************************************************
1 item had failures:
1 of 21 in sagenb.notebook.worksheet.Worksheet.delete_all_output
[530 tests, 1 failure, 13.40 s]
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16746#comment:23>
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.