Ticket #7985 (closed defect: fixed)
fix doctest in base.pyx
| Reported by: | wcauchois | Owned by: | was |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.3.1 |
| Component: | graphics | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | Willem Jan Palenstijn |
| Authors: | Bill Cauchois | Merged in: | sage-4.3.1.rc1 |
| Dependencies: | Stopgaps: |
Description
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.
Attachments
Change History
Changed 3 years ago by wcauchois
-
attachment
fix-annoying-doctest.patch
added
Note: See
TracTickets for help on using
tickets.

based on sage 4.3.1.rc0