Ticket #7985 (closed defect: fixed)
fix doctest in base.pyx
|Reported by:||wcauchois||Owned by:||was|
|Report Upstream:||N/A||Reviewers:||Willem Jan Palenstijn|
|Authors:||Bill Cauchois||Merged in:||sage-4.3.1.rc1|
The following doctest from line 757 of base.pyx:
sage: G = tetrahedron(color='red') + tetrahedron(color='yellow') + tetrahedron(color='red', opacity=0.5) sage: G.texture_set() set([Texture(texture..., red, ff0000), Texture(texture..., yellow, ffff00), Texture(texture..., red, ff0000)])
will fail sometimes because the order of the elements of the set is not fixed. The attached patch fixes this by outputting first the two red textures, and then the yellow texture.