#5764: [with patch, needs work] improve doctest coverage for sageinspect.py
------------------------+---------------------------------------------------
Reporter: jhpalmieri | Owner: jhpalmieri
Type: defect | Status: new
Priority: minor | Milestone: sage-3.4.1
Component: doctest | Keywords:
------------------------+---------------------------------------------------
Comment(by was):
The problem is 100% that I forgot to apply the patches at #5754. Thanks.
Michael, keep in mind that this ticket depends on #5754.
I think this doctest failure is caused by this patch, since you got rid of
a lot of strips.
{{{
sage -t devel/sage/sage/server/notebook/cell.py
**********************************************************************
File "/scratch/wstein/build/sage-3.4.1.rc2/devel/sage-
ref2/sage/server/notebook/cell.py", line 406:
sage: C
Expected:
Cell 0; in=2+3, out=20
Got:
Cell 0; in=2+3, out=
20
**********************************************************************
1 items had failures:
1 of 13 in __main__.example_25
***Test Failed*** 1 failures.
For whitespace errors, see the file
/scratch/wstein/build/sage-3.4.1.rc2/tmp/.doctest_cell.py
[14.3 s]
}}}
Here are some similar failures:
{{{
sage -t devel/sage/sage/server/notebook/worksheet.py
**********************************************************************
File "/scratch/wstein/build/sage-3.4.1.rc2/devel/sage-
ref2/sage/server/notebook/worksheet.py", line 326:
sage: W.__repr__()
Expected:
'[Cell 0; in=2+3, out=5, Cell 10; in=2+8, out=10]'
Got:
'[Cell 0; in=2+3, out=\n5, Cell 10; in=2+8, out=\n10]'
**********************************************************************
File "/scratch/wstein/build/sage-3.4.1.rc2/devel/sage-
ref2/sage/server/notebook/worksheet.py", line 2088:
sage: W
Expected:
[Cell 0; in=2+3, out=5, Cell 1; in=2+8, out=10]
Got:
[Cell 0; in=2+3, out=
5, Cell 1; in=2+8, out=
10]
**********************************************************************
File "/scratch/wstein/build/sage-3.4.1.rc2/devel/sage-
ref2/sage/server/notebook/worksheet.py", line 2509:
sage: v = W.cell_list(); v
Expected:
[Cell 0; in=2+3, out=5, Cell 1; in=2+8, out=10]
Got:
[Cell 0; in=2+3, out=
5, Cell 1; in=2+8, out=
10]
**********************************************************************
File "/scratch/wstein/build/sage-3.4.1.rc2/devel/sage-
ref2/sage/server/notebook/worksheet.py", line 2511:
sage: v[0]
Expected:
Cell 0; in=2+3, out=5
Got:
Cell 0; in=2+3, out=
5
**********************************************************************
File "/scratch/wstein/build/sage-3.4.1.rc2/devel/sage-
ref2/sage/server/notebook/worksheet.py", line 3863:
sage: W.cell_list()
Expected:
[Cell 0; in=2+3, out=5]
Got:
[Cell 0; in=2+3, out=
5]
**********************************************************************
4 items had failures:
1 of 7 in __main__.example_7
1 of 8 in __main__.example_70
2 of 7 in __main__.example_79
1 of 11 in __main__.example_99
***Test Failed*** 5 failures.
For whitespace errors, see the file
/scratch/wstein/build/sage-3.4.1.rc2/tmp/.doctest_worksheet.py
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5764#comment:4>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---