Status: Valid
Owner: ----
Labels: Type-Defect Priority-High
New issue 3905 by [email protected]: Doctest failure in
sympy.printing.dot.dotprint
http://code.google.com/p/sympy/issues/detail?id=3905
Following failure occurs when testing in Python 2.5. It passes for Python
version 2.6, 2.7 and 3.2.
________________________________________________________________________________
_________________________ sympy.printing.dot.dotprint
__________________________
File "/tmp/sympy-bot-tmpvlYyE6/sympy/sympy/printing/dot.py", line 160, in
sympy.printing.dot.dotprint
Failed example:
print dotprint(x+2) # doctest: +NORMALIZE_WHITESPACE
Expected:
digraph{
<BLANKLINE>
# Graph style
"rankdir"="TD"
<BLANKLINE>
#########
# Nodes #
#########
<BLANKLINE>
"Symbol(x)_(1,)" ["color"="black", "label"="x", "shape"="ellipse"];
"Integer(2)_(0,)" ["color"="black", "label"="2", "shape"="ellipse"];
"Add(Integer(2), Symbol(x))_()"
["color"="black", "label"="Add", "shape"="ellipse"];
<BLANKLINE>
#########
# Edges #
#########
<BLANKLINE>
"Add(Integer(2), Symbol(x))_()" -> "Symbol(x)_(1,)";
"Add(Integer(2), Symbol(x))_()" -> "Integer(2)_(0,)";
}
Got:
digraph{
<BLANKLINE>
# Graph style
"depth"="1"
"rankdir"="TD"
<BLANKLINE>
#########
# Nodes #
#########
<BLANKLINE>
"Symbol(x)_(1,)" ["color"="black", "label"="x", "shape"="ellipse"];
"Integer(2)_(0,)" ["color"="black", "label"="2", "shape"="ellipse"];
"Add(Integer(2), Symbol(x))_()"
["color"="black", "label"="Add", "shape"="ellipse"];
<BLANKLINE>
#########
# Edges #
#########
<BLANKLINE>
"Add(Integer(2), Symbol(x))_()" -> "Symbol(x)_(1,)";
"Add(Integer(2), Symbol(x))_()" -> "Integer(2)_(0,)";
}
_________________________________________________________________________________
Here is the complete test report :
http://sympy-reviews.appspot.com/report/ag9zfnN5bXB5LXJldmlld3NyDAsSBFRhc2sY0f0FDA
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.